aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.btrace/tailcall.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.btrace/tailcall.exp')
-rw-r--r--gdb/testsuite/gdb.btrace/tailcall.exp12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.btrace/tailcall.exp b/gdb/testsuite/gdb.btrace/tailcall.exp
index 22704c7..bc8afc4 100644
--- a/gdb/testsuite/gdb.btrace/tailcall.exp
+++ b/gdb/testsuite/gdb.btrace/tailcall.exp
@@ -32,13 +32,15 @@ if [info exists COMPILE] {
# make check RUNTESTFLAGS="gdb.btrace/tailcall.exp COMPILE=1"
standard_testfile tailcall.c
lappend opts debug optimize=-O2
-} elseif {[istarget "x86_64-*-*"]} {
- standard_testfile x86_64-tailcall.S
-} elseif {[istarget "i?86-*-*"]} {
- standard_testfile i686-tailcall.S
+} elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
+ if {[is_amd64_regs_target]} {
+ standard_testfile x86_64-tailcall.S
+ } else {
+ standard_testfile i686-tailcall.S
+ }
} else {
verbose "Skipping ${testfile}."
- return
+ return -1
}
if [prepare_for_testing tailcall.exp $testfile $srcfile $opts] {