Use require is_aarch64_target
authorTom Tromey <tom@tromey.com>
Wed, 14 Dec 2022 16:47:30 +0000 (09:47 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:55 +0000 (13:18 -0700)
This changes some tests to use "require is_aarch64_target".

13 files changed:
gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
gdb/testsuite/gdb.arch/aarch64-dbreg-contents.exp
gdb/testsuite/gdb.arch/aarch64-fp.exp
gdb/testsuite/gdb.arch/aarch64-mte-core.exp
gdb/testsuite/gdb.arch/aarch64-mte.exp
gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp
gdb/testsuite/gdb.arch/aarch64-pauth.exp
gdb/testsuite/gdb.arch/aarch64-prologue.exp
gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
gdb/testsuite/gdb.arch/aarch64-w-registers.exp

index 7fa5bcab610b8edaabf072b460ea346adac8c79a..c88594f2af9609844342d94a816321849e3c240f 100644 (file)
 # Test single stepping through atomic sequences beginning with
 # a ldxr instruction and ending with a stxr instruction.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 98504fef32731172aacdc475e9bf4e3de1cbe5f4..304e4b16b60cd12b46e3b6becd74385644178350 100644 (file)
 # Test if GDB stops at various BRK instruction patterns inserted into
 # the code.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
index e97a0eb2db654bc7e3bb4891a2e5277444075eba..8c430aafbe28e904bc4d005f39c78c653502022e 100644 (file)
 #
 # See PR breakpoints/21870.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile .c
 
index 4bbd6d305c0ec348b7407f86e4d13604ccafda49..c851447bb45feffd18ac4047c0be2a6e1bd0f118 100644 (file)
 # PR server/17457
 # Test aarch64 floating point registers q0, q1, v0, v1, fpsr, fpcr
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 485a90756162fdfb043509e3754be0500910486a..dde5df47b1a271f87e39d341fbd4c8b1562df911 100644 (file)
@@ -164,10 +164,7 @@ proc test_mode { mode } {
 
 }
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 # Run tests
 foreach_with_prefix mode {"sync" "async"} {
index 194576ac7f6bb646e3e94a5b790444e276291745..e026f85fa72d11eb1fcff7ea86e4384bd7381295 100644 (file)
@@ -43,10 +43,7 @@ proc get_ltag_from_ptr { ptr } {
                      "fetch tag from pointer ${ptr}"]
 }
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index bc5e089c633534515162129547ca63f4b009e749..2f7ebb1c04bba08ab5198218f169706adee27df1 100644 (file)
 # the upper 16 bits (PAC) or 8 bits (Tag) set, as well as the
 # VA_RANGE_SELECT bit (55).
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 731bf760410b26a8216d49e1dbadd83309d0d24b..d0dfaf969006a12c7b63bf6009f82063085c1085 100644 (file)
 # supports pauth instructions.  On non pauth systems, all pauth instructions
 # are treated as nops.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 # Build program with address signing forced on.
 standard_testfile
index ba3c26f0baaf39db15143c0c12f5c8896421943f..776615a3e5e836fb5c82c24ff683485866c7131f 100644 (file)
 
 # This file is part of the gdb testsuite.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return 1
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
index d748810d92a3e093f4bdfa42a16b3f60e2ee21b0..d3f7d1f503ee1ca8aa3c181965564d884d0d55bd 100644 (file)
 #
 # This file is part of the gdb testsuite.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return -1
-}
+require is_aarch64_target
 
 set compile_flags {debug}
 
index f08fc6c99ea3b3a51a8d97eca6bd111bca15411d..4cb277c7777bd229d0ea5c1dea2b46f3e9a97a74 100644 (file)
 #
 # This file is part of the gdb testsuite.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
index 14d8a33eb9b557258802271f84eecb91d80d7b4f..724945af49205e3dbf420dd1faf61193a52ae6d0 100644 (file)
 
 # Test explicitly unwinding the PC DWARF register on aarch64
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile .S
 
index 86b1af922db05ca4858194112bb11bb6c1099b37..d8463647cc6e86773272afa85523cb98828bde89 100644 (file)
 # Check if the W registers have the expected size and if setting/fetching
 # values from W registers works correctly for both big and little endian.
 
-if {![is_aarch64_target]} {
-    verbose "Skipping ${gdb_test_file_name}."
-    return
-}
+require is_aarch64_target
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {