diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-23 23:23:27 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-16 00:36:47 -0500 |
commit | d0b2f561a1e8ef6ecf87a99f220262d58538c750 (patch) | |
tree | 551de4314e04ce7f888ab2fa58cb34f3912ff482 /sim/testsuite/arm | |
parent | bc85f56bfda7162688b9bea8dd942ec473bdb21b (diff) | |
download | binutils-d0b2f561a1e8ef6ecf87a99f220262d58538c750.zip binutils-d0b2f561a1e8ef6ecf87a99f220262d58538c750.tar.gz binutils-d0b2f561a1e8ef6ecf87a99f220262d58538c750.tar.bz2 |
sim: testsuite: cleanup the istarget * logic
Now that the multitarget testing has settled, clean up the cases where
istarget * is used. This ends up being mostly style unindenting.
Diffstat (limited to 'sim/testsuite/arm')
-rw-r--r-- | sim/testsuite/arm/allinsn.exp | 22 | ||||
-rw-r--r-- | sim/testsuite/arm/iwmmxt/iwmmxt.exp | 22 | ||||
-rw-r--r-- | sim/testsuite/arm/misc.exp | 22 | ||||
-rw-r--r-- | sim/testsuite/arm/thumb/allthumb.exp | 22 | ||||
-rw-r--r-- | sim/testsuite/arm/xscale/xscale.exp | 22 |
5 files changed, 45 insertions, 65 deletions
diff --git a/sim/testsuite/arm/allinsn.exp b/sim/testsuite/arm/allinsn.exp index da28b69..95a5759 100644 --- a/sim/testsuite/arm/allinsn.exp +++ b/sim/testsuite/arm/allinsn.exp @@ -2,18 +2,14 @@ sim_init -if { [istarget *] } { - # all machines - set all_machs "xscale" - - # The .cgs suffix is for "cgen .s". - foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { - # If we're only testing specific files and this isn't one of them, - # skip it. - if ![runtest_file_p $runtests $src] { - continue - } - - run_sim_test $src $all_machs +# all machines +set all_machs "xscale" + +# The .cgs suffix is for "cgen .s". +foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { + # If we're only testing specific files and this isn't one of them, skip it. + if ![runtest_file_p $runtests $src] { + continue } + run_sim_test $src $all_machs } diff --git a/sim/testsuite/arm/iwmmxt/iwmmxt.exp b/sim/testsuite/arm/iwmmxt/iwmmxt.exp index 19a78a2..3e0fb33 100644 --- a/sim/testsuite/arm/iwmmxt/iwmmxt.exp +++ b/sim/testsuite/arm/iwmmxt/iwmmxt.exp @@ -2,18 +2,14 @@ sim_init -if { [istarget *] } { - # all machines - set all_machs "xscale" - - # The .cgs suffix is for "cgen .s". - foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { - # If we're only testing specific files and this isn't one of them, - # skip it. - if ![runtest_file_p $runtests $src] { - continue - } - - run_sim_test $src $all_machs +# all machines +set all_machs "xscale" + +# The .cgs suffix is for "cgen .s". +foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { + # If we're only testing specific files and this isn't one of them, skip it. + if ![runtest_file_p $runtests $src] { + continue } + run_sim_test $src $all_machs } diff --git a/sim/testsuite/arm/misc.exp b/sim/testsuite/arm/misc.exp index 47d714c..5ba5f64 100644 --- a/sim/testsuite/arm/misc.exp +++ b/sim/testsuite/arm/misc.exp @@ -2,18 +2,14 @@ sim_init -if { [istarget *] } { - # all machines - set all_machs "arm7tdmi" - - # The .ms suffix is for "miscellaneous .s". - foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.ms]] { - # If we're only testing specific files and this isn't one of them, - # skip it. - if ![runtest_file_p $runtests $src] { - continue - } - - run_sim_test $src $all_machs +# all machines +set all_machs "arm7tdmi" + +# The .ms suffix is for "miscellaneous .s". +foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.ms]] { + # If we're only testing specific files and this isn't one of them, skip it. + if ![runtest_file_p $runtests $src] { + continue } + run_sim_test $src $all_machs } diff --git a/sim/testsuite/arm/thumb/allthumb.exp b/sim/testsuite/arm/thumb/allthumb.exp index 36eb29c..db1d00d 100644 --- a/sim/testsuite/arm/thumb/allthumb.exp +++ b/sim/testsuite/arm/thumb/allthumb.exp @@ -2,18 +2,14 @@ sim_init -if { [istarget *] } { - # all machines - set all_machs "arm7tdmi" - - # The .cgs suffix is for "cgen .s". - foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { - # If we're only testing specific files and this isn't one of them, - # skip it. - if ![runtest_file_p $runtests $src] { - continue - } - - run_sim_test $src $all_machs +# all machines +set all_machs "arm7tdmi" + +# The .cgs suffix is for "cgen .s". +foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { + # If we're only testing specific files and this isn't one of them, skip it. + if ![runtest_file_p $runtests $src] { + continue } + run_sim_test $src $all_machs } diff --git a/sim/testsuite/arm/xscale/xscale.exp b/sim/testsuite/arm/xscale/xscale.exp index 80faf5c..0e5a754 100644 --- a/sim/testsuite/arm/xscale/xscale.exp +++ b/sim/testsuite/arm/xscale/xscale.exp @@ -2,18 +2,14 @@ sim_init -if { [istarget *] } { - # all machines - set all_machs "xscale" - - # The .cgs suffix is for "cgen .s". - foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { - # If we're only testing specific files and this isn't one of them, - # skip it. - if ![runtest_file_p $runtests $src] { - continue - } - - run_sim_test $src $all_machs +# all machines +set all_machs "xscale" + +# The .cgs suffix is for "cgen .s". +foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.cgs]] { + # If we're only testing specific files and this isn't one of them, skip it. + if ![runtest_file_p $runtests $src] { + continue } + run_sim_test $src $all_machs } |