-# Copyright 2010, 2011 Free Software Foundation, Inc.
+# Copyright 2010-2019 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
return 0
}
# This test can only be run on x86 targets.
-if {![istarget i?86-*]} {
+if {![is_x86_like_target]} {
return 0
}
-set testfile "pieces"
-set srcfile ${testfile}.S
+standard_testfile .S
set csrcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}.x
-if {[prepare_for_testing ${testfile}.exp ${testfile}.x $srcfile]} {
+if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile]} {
return -1
}