From dd039bc424721c1d86424e39d2c1038dcb8e22a5 Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Fri, 23 Aug 2002 01:52:22 +0000 Subject: [PATCH] 2002-08-22 Elena Zannoni * gdb.arch/altivec-abi.exp: The source C file is altivec-abi.c, not altivec.c. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.arch/altivec-abi.exp | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a4dca64e48e..e8d14ab558d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-08-22 Elena Zannoni + + * gdb.arch/altivec-abi.exp: The source C file is altivec-abi.c, + not altivec.c. + 2002-08-17 Mark Kettenis * gdb.base/return.exp: Remove i*86-*-* from list of xfail'ed diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp index 8a9f29dd813..2e4504a1a30 100644 --- a/gdb/testsuite/gdb.arch/altivec-abi.exp +++ b/gdb/testsuite/gdb.arch/altivec-abi.exp @@ -26,7 +26,7 @@ if $tracelevel then { } # -# This file uses altivec.c for input. +# This file uses altivec-abi.c for input. # set prms_id 0 @@ -37,7 +37,7 @@ if ![istarget "powerpc-*altivec"] then { return } -set testfile "altivec" +set testfile "altivec-abi" set binfile ${objdir}/${subdir}/${testfile} set src1 ${srcdir}/${subdir}/${testfile}.c @@ -58,16 +58,16 @@ if ![runto_main] then { gdb_suppress_tests } -gdb_test "b marker" "Breakpoint 2 at.*file.*altivec.c, line \[0-9\]+." "break marker" -gdb_test "continue" "Breakpoint 2.*marker.*altivec.c.*" "continue to marker" -gdb_test "finish" "Run till exit from .0.*in marker.*at.*altivec.c.*main \\(\\) at.*altivec.c.*result = vec_func \\(vshort,.*goes in v2.*" "back to main (1)" +gdb_test "b marker" "Breakpoint 2 at.*file.*altivec-abi.c, line \[0-9\]+." "break marker" +gdb_test "continue" "Breakpoint 2.*marker.*altivec-abi.c.*" "continue to marker" +gdb_test "finish" "Run till exit from .0.*in marker.*at.*altivec-abi.c.*main \\(\\) at.*altivec-abi.c.*result = vec_func \\(vshort,.*goes in v2.*" "back to main (1)" # now all the arguments of vec_fun are initialized set pattern "vec_func .vshort_f=.111, 222, 333, 444, 555, 666, 777, 888., vushort_f=.100, 200, 300, 400, 500, 600, 700, 800., vint_f=.-10, -20, -30, -40., vuint_f=.1111, 2222, 3333, 4444., vchar_f=.abcdefghilmnopqr., vuchar_f=.ABCDEFGHILMNOPQR., vfloat_f=.1.25, 3.75, 5.5, 1.25., x_f=.1, 2, 3, 4, 5, 6, 7, 8., y_f=.12, 22, 32, 42., a_f=.vector of chars.., b_f=.5.5, 4.5, 3.75, 2.25., c_f=.1.25, 3.5, 5.5, 7.75., intv_on_stack_f=.12, 34, 56, 78.." set pattern1 $pattern -append pattern1 " at.*altivec.c.*vint_res = vec_add.*vint_f, intv_on_stack_f.;" +append pattern1 " at.*altivec-abi.c.*vint_res = vec_add.*vint_f, intv_on_stack_f.;" # Now let's call the function. This function has > 12 args, # the last one will go on the stack. @@ -85,7 +85,7 @@ gdb_test "step" \ "step into vec_fun" set pattern2 $pattern -append pattern2 " at.*altivec.c.*in main.*result = vec_func .vshort,.*goes in v2.*Value returned is.*= .2, 2, 2, 2." +append pattern2 " at.*altivec-abi.c.*in main.*result = vec_func .vshort,.*goes in v2.*Value returned is.*= .2, 2, 2, 2." # Let's see if the result is returned correctly. gdb_test "finish" \ @@ -95,14 +95,14 @@ gdb_test "finish" \ # can we print the args correctly for this function? gdb_test "break struct_of_vector_func" "" "" -set pattern "struct_of_vector_func .vector_struct=.vshort1 = .1, 2, 3, 4, 5, 6, 7, 8., vshort2 = .11, 12, 13, 14, 15, 16, 17, 18., vshort3 = .21, 22, 23, 24, 25, 26, 27, 28., vshort4 = .31, 32, 33, 34, 35, 36, 37, 38... at.*altivec.c.*" +set pattern "struct_of_vector_func .vector_struct=.vshort1 = .1, 2, 3, 4, 5, 6, 7, 8., vshort2 = .11, 12, 13, 14, 15, 16, 17, 18., vshort3 = .21, 22, 23, 24, 25, 26, 27, 28., vshort4 = .31, 32, 33, 34, 35, 36, 37, 38... at.*altivec-abi.c.*" gdb_test "continue" \ "Breakpoint 3, $pattern.*vector_struct.vshort1 = vec_add .vector_struct.vshort1, vector_struct.vshort2.;" \ "continue to struct_of_vector_func" gdb_test "finish" \ - "Run till exit from .0 $pattern\[ \r\n\]+main.*altivec.c.*array_of_vector_func.*" \ + "Run till exit from .0 $pattern\[ \r\n\]+main.*altivec-abi.c.*array_of_vector_func.*" \ "back to main (2)" gdb_test "step" "" "step into array_of_vector_func" -- 2.30.2