Index: gdb/testsuite/gdb.arch/altivec-abi.exp |
diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp |
index 994b23cb09f9122e111f8b3705e54f531ab6daec..a958250bd1f53db25a8e432b3805c3bcb5358f40 100644 |
--- a/gdb/testsuite/gdb.arch/altivec-abi.exp |
+++ b/gdb/testsuite/gdb.arch/altivec-abi.exp |
@@ -18,10 +18,6 @@ |
# Tests for Powerpc AltiVec ABI |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
# |
# This file uses altivec-abi.c for input. |
# |
@@ -35,7 +31,7 @@ set testfile "altivec-abi" |
set binfile ${objdir}/${subdir}/${testfile} |
set srcfile ${testfile}.c |
-if [get_compiler_info $binfile] { |
+if [get_compiler_info] { |
warning "get_compiler failed" |
return -1 |
} |
@@ -151,10 +147,9 @@ proc altivec_abi_tests { extra_flags force_abi } { |
} |
if [test_compiler_info gcc*] { |
- set saved_prefix $pf_prefix |
- |
- set pf_prefix "${saved_prefix} default ABI, auto:" |
- altivec_abi_tests "additional_flags=-maltivec" "auto" |
+ with_test_prefix "default ABI, auto" { |
+ altivec_abi_tests "additional_flags=-maltivec" "auto" |
+ } |
# On GNU/Linux, we can mix -mabi=no-altivec and -mabi=altivec. |
# So test some combinations. |
@@ -163,21 +158,25 @@ if [test_compiler_info gcc*] { |
# was broken, so skip those tests there. |
if { ![is_lp64_target] || ![test_compiler_info "gcc-4-\[12\]-*"] } { |
set binfile ${objdir}/${subdir}/${testfile}-ge-ge |
- set pf_prefix "${saved_prefix} generic ABI, forced:" |
- altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=no-altivec" "generic" |
+ with_test_prefix "generic ABI, forced" { |
+ altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=no-altivec" "generic" |
+ } |
set binfile ${objdir}/${subdir}/${testfile}-ge-auto |
- set pf_prefix "${saved_prefix} generic ABI, auto:" |
- altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=no-altivec" "auto" |
+ with_test_prefix "generic ABI, auto" { |
+ altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=no-altivec" "auto" |
+ } |
} |
set binfile ${objdir}/${subdir}/${testfile}-av-av |
- set pf_prefix "${saved_prefix} AltiVec ABI, forced:" |
- altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=altivec" "altivec" |
+ with_test_prefix "AltiVec ABI, forced" { |
+ altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=altivec" "altivec" |
+ } |
set binfile ${objdir}/${subdir}/${testfile}-av-auto |
- set pf_prefix "${saved_prefix} AltiVec ABI, auto:" |
- altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=altivec" "auto" |
+ with_test_prefix "AltiVec ABI, auto" { |
+ altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=altivec" "auto" |
+ } |
} |
} elseif [test_compiler_info xlc*] { |
altivec_abi_tests "additional_flags=-qaltivec" "auto" |