@@ -14,11 +14,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
require {istarget "powerpc*-*-aix*"}
if { [prepare_for_testing "failed to prepare" aix-sighandle aix-sighandle.c] } {
- return -1
+ return
}
set srcfile aix-sighandle.c
set binfile aix-sighandle
@@ -168,7 +168,7 @@ if {[test_compiler_info gcc*]} {
}
} elseif {[test_compiler_info xlc*]} {
altivec_abi_tests "additional_flags=-qaltivec" "auto"
} else {
warning "unknown compiler"
- return -1
+ return
}
@@ -30,11 +30,11 @@ if {[test_compiler_info gcc*]} {
set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
} elseif {[test_compiler_info xlc*]} {
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
untested "failed to compile"
return -1
@@ -47,11 +47,11 @@ gdb_load ${binfile}
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "start here"]
gdb_continue_to_breakpoint "start here"
@@ -40,11 +40,11 @@ gdb_load ${binfile}
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "b marker" "Breakpoint 2 at.*file.*e500-abi.c, line ${::decimal}." "break marker"
gdb_test "continue" "Breakpoint 2.*marker.*e500-abi.c.*" "continue to marker"
gdb_test "finish" "Run till exit from .0.*marker.*at.*e500-abi.c.*main \\(\\) at.*e500-abi.c.*res_vec = vec_func \\(a_vec,.*goes in r3.*" "back to main (1)"
@@ -22,11 +22,11 @@ require {istarget "powerpc-*"}
set testfile "e500-prologue"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
gdb_load $binfile
@@ -39,11 +39,11 @@ gdb_load ${binfile}
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
# set all the registers integer portions to 1
for {set i 0} {$i < 32} {incr i 1} {
for {set j 0} {$j < 2} {incr j 1} {
@@ -137,11 +137,11 @@ gdb_expect_list "info vector" ".*$gdb_prompt $" {
# some unusual values.
clean_restart
gdb_load $binfile
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break vector_fun" \
"Breakpoint 2 at.*e500-regs.c, line ${::decimal}\\." \
"set breakpoint at vector_fun"
@@ -30,11 +30,11 @@ set retval 0
standard_testfile .s
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
if {![runto_main]} {
return
}
@@ -23,11 +23,11 @@ require {istarget "powerpc-*-aix*"}
set testfile "powerpc-aix-prologue"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
gdb_load $binfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -34,11 +34,11 @@ clean_restart $::testfile
if {![runto_main]} {
return
}
if {[gdb_test "show arch" ".*powerpc:common.*" "checking for PPC arch"]} {
- return -1
+ return
}
gdb_test "next" ""
for {set i 0} {$i < 16} {incr i 1} {
@@ -29,17 +29,17 @@ gdb_produce_source $gen_src {
return 0;
}
}
if {[build_executable "compile" $binfile $gen_src] == -1} {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Check if our target has FPSCR
proc check_fpscr_access {} {
global gdb_prompt
@@ -57,28 +57,28 @@ proc check_fpscr_access {} {
}
return 0
}
if { ![check_fpscr_access] } {
- return -1
+ return
}
set fpscr_size_process [get_integer_valueof "sizeof(\$fpscr)" -1 "process size"]
set core_filename [standard_output_file "$testfile.core"]
set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"]
if { !$core_generated } {
- return -1
+ return
}
clean_restart
set core_loaded [gdb_core_cmd "$core_filename" "load core file"]
if { $core_loaded != 1 } {
- return -1
+ return
}
set fpscr_size_corefile [get_integer_valueof "sizeof(\$fpscr)" -2 "corefile size" ]
set test "fpscr size matches"
@@ -29,11 +29,11 @@ set retval 0
standard_testfile .s
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
if {![runto_main]} {
return
}
@@ -22,11 +22,11 @@ set retval 0
standard_testfile .s
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
gdb_test "set radix 0b10000"
gdb_test "set debug displaced"
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -20,11 +20,11 @@ set binfile [standard_output_file ${testfile}]
if {[gdb_compile \
[list ${srcdir}/${subdir}/$srcfile ${srcdir}/${subdir}/$srcfile2] \
"${binfile}" executable {}] != ""} {
untested "failed to build $binfile"
- return -1
+ return
}
clean_restart $testfile
@@ -25,22 +25,22 @@ set binfile [standard_output_file ${testfile}]
# Don't use "debug", so that we don't have line information for the assembly
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
untested "PowerPC prologue tests"
- return -1
+ return
}
clean_restart $testfile
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
# Testcase for PIC prologue.
gdb_breakpoint "gdb2029_marker"
@@ -18,11 +18,11 @@
require {istarget "powerpc*-*-*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Run until SIGSEGV.
gdb_run_cmd
@@ -25,11 +25,11 @@
require {istarget "powerpc*-*-linux*"}
standard_testfile .c
if {[build_executable "compile" $binfile $srcfile {debug}] == -1} {
- return -1
+ return
}
proc check_register_access { regname } {
global gdb_prompt
@@ -32,16 +32,16 @@ if { [istarget powerpc-*] } {
unsupported "Skipping powerpc-specific tests"
return
}
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
set keep_going 1
set count 0
@@ -29,17 +29,17 @@ gdb_produce_source $gen_src {
return 0;
}
}
if {[build_executable "compile" $binfile $gen_src] == -1} {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Check if VSX register access through gdb is supported
proc check_vsx_access {} {
global gdb_prompt
@@ -57,30 +57,30 @@ proc check_vsx_access {} {
}
return 0
}
if { ![check_vsx_access] } {
- return -1
+ return
}
for {set i 0} {$i < 64} {incr i 1} {
gdb_test_no_output "set \$vs$i.uint128 = $i"
}
set core_filename [standard_output_file "$testfile.core"]
set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"]
if { !$core_generated } {
- return -1
+ return
}
clean_restart
set core_loaded [gdb_core_cmd "$core_filename" "load core file"]
if { $core_loaded != 1 } {
- return -1
+ return
}
for {set i 0} {$i < 64} {incr i 1} {
gdb_test "print \$vs$i.uint128" ".* = $i" "print vs$i"
}
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -22,11 +22,11 @@ set objfile [standard_output_file ${testfile}.o]
require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
gdb_load $objfile
@@ -23,21 +23,21 @@ standard_testfile .c
# Don't use "debug", so that we don't have line information for the assembly
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
untested "PowerPC prologue tests"
- return -1
+ return
}
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{}] } {
- return -1
+ return
}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
# Testcase for PIC prologue.
gdb_breakpoint "gdb2029_marker"
gdb_test "continue" "Breakpoint $decimal, $hex in gdb2029_marker \\(\\).*" \
@@ -21,16 +21,16 @@ require {istarget "powerpc*"}
standard_testfile
if {![test_compiler_info gcc*]} {
# We use GCC's extended asm syntax
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
unsupported "this machine doesn't support Decimal Floating Point."
- return -1
+ return
}
clean_restart $::testfile
gdb_breakpoint [gdb_get_line_number "Set DFP rounding mode."]
@@ -40,11 +40,11 @@ gdb_run_cmd
# When the prompt comes back we'll be at the Set DFP rounding mode breakpoint.
# Unless the program bails out after checking AT_HWCAP.
gdb_expect {
-re "$inferior_exited_re with code 01.\[\r\n\]+$gdb_prompt $" {
unsupported "this machine doesn't support Decimal Floating Point."
- return -1
+ return
}
-re ".*$gdb_prompt $" {}
}
@@ -21,16 +21,16 @@ require {istarget "powerpc*"}
standard_testfile
if {![test_compiler_info gcc*]} {
# We use GCC's extended asm syntax
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
verbose "Skipping FPSCR tests."
- return -1
+ return
}
clean_restart $::testfile
gdb_breakpoint [gdb_get_line_number "Invalid operation."]
@@ -22,11 +22,11 @@
require {istarget "powerpc*"} is_lp64_target
standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug quiet}] } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
# stepping.
proc do_test { displaced } {
@@ -37,15 +37,15 @@ if {[info exists COMPILE]} {
standard_testfile .s -main.c
}
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] $flags] } {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "_exit"
# If the skip_prologue analysis of _exit is too eager, we may not hit the
@@ -25,11 +25,11 @@ require {istarget "powerpc*"} is_lp64_target
standard_testfile .c .S
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
{debug quiet}] } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
# stepping.
@@ -27,17 +27,17 @@ set kobz2file ${srcdir}/${subdir}/cordic.ko.bz2
set kodebugbz2file ${srcdir}/${subdir}/cordic.ko.debug.bz2
set kofile [decompress_bz2 $kobz2file]
if { $kofile == "" } {
untested "failed bzip2 for [file tail $kobz2file]"
- return -1
+ return
}
set kodebugfile [decompress_bz2 $kodebugbz2file]
if { $kodebugfile == "" } {
untested "failed bzip2 for [file tail $kodebugbz2file]"
- return -1
+ return
}
# This test won't work properly if system debuginfo is installed.
# Test message is suppressed by "" as otherwise we could print PASS+UNTESTED
# result to gdb.sum making a false feeling the issue has been tested.
@@ -28,11 +28,11 @@ if {[test_compiler_info gcc*]} {
set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
} elseif {[test_compiler_info xlc*]} {
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
untested "failed to compile"
return -1
@@ -43,11 +43,11 @@ gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
set endianness [get_endianness]
# Data sets used throughout the test
@@ -27,11 +27,11 @@ if {[test_compiler_info gcc*]} {
set compile_flags "$compile_flags additional_flags=-maltivec additional_flags=-mabi=altivec"
} elseif {[test_compiler_info xlc*]} {
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
untested "failed to compile"
return -1
@@ -42,11 +42,11 @@ gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
set endianness [get_endianness]
# Data sets used throughout the test