# This testcase is part of GDB, the GNU debugger.
#
-# Copyright 2013-2015 Free Software Foundation, Inc.
+# Copyright 2013-2016 Free Software Foundation, Inc.
#
# Contributed by Intel Corp. <markus.t.metzger@intel.com>
#
# make check RUNTESTFLAGS="gdb.btrace/record_goto.exp COMPILE=1"
standard_testfile record_goto.c
lappend opts debug
-} elseif {[istarget "x86_64-*-*"]} {
- standard_testfile x86_64-record_goto.S
-} elseif {[istarget "i?86-*-*"]} {
- standard_testfile i686-record_goto.S
+} elseif {[istarget "i?86-*-*"] || [istarget "x86_64-*-*"]} {
+ if {[is_amd64_regs_target]} {
+ standard_testfile x86_64-record_goto.S
+ } else {
+ standard_testfile i686-record_goto.S
+ }
} else {
verbose "Skipping ${testfile}."
return -1
}
-if [prepare_for_testing record_goto.exp $testfile $srcfile $opts] {
+if [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] {
return -1
}
if ![runto_main] {