]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: fix test for armv6t2 hardware
authorRichard Earnshaw <rearnsha@arm.com>
Wed, 15 Nov 2023 10:30:15 +0000 (10:30 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Wed, 15 Nov 2023 10:46:31 +0000 (10:46 +0000)
My previous patch series added a new function to check for armv6t2
compatible hardware.  But the test was not correctly implemented and
also did not follow the standard naming convention for Arm hw
compatibility tests.  Fix both of these issues.

gcc/testsuite:

* lib/target-supports.exp (check_effective_target_arm_arch_v6t2_hw_ok):
Rename to...
(check_effective_target_arm_arch_v6t2_hw): ... this.  Fix checks.
* gcc.target/arm/acle/data-intrinsics-armv6.c: Update pre-check.
* gcc.target/arm/acle/data-intrinsics-rbit.c: Likewise.

gcc/testsuite/gcc.target/arm/acle/data-intrinsics-armv6.c
gcc/testsuite/gcc.target/arm/acle/data-intrinsics-rbit.c
gcc/testsuite/lib/target-supports.exp

index 6dc8c55e2f9a164abcf8d920821fadc95f468e55..c231fa4c1ae429f05b76d5d2e3e366f1761f63af 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-require-effective-target arm_arch_v6t2_hw_ok } */
+/* { dg-require-effective-target arm_arch_v6t2_hw } */
 /* { dg-add-options arm_arch_v6t2 } */
 
 #include "arm_acle.h"
index b01c4219a7e73e6cf7dd5a7b29629e597ea953c9..ac358bce02da1cc3190200212a805552f64a11a8 100644 (file)
@@ -1,6 +1,6 @@
 /* Test the ACLE data intrinsics existence for specific instruction.  */
 /* { dg-do run } */
-/* { dg-require-effective-target arm_arch_v6t2_hw_ok } */
+/* { dg-require-effective-target arm_arch_v6t2_hw } */
 /* { dg-additional-options "--save-temps -O1" } */
 /* { dg-add-options arm_arch_v6t2 } */
 /* { dg-final { check-function-bodies "**" "" "" } } */
index 43a040e135c324a9afd332a5b058a3e970d0f850..b6a2e4fd0961eea9ffdf3c018ebbccbfa58bdd75 100644 (file)
@@ -5607,9 +5607,9 @@ proc check_effective_target_arm_thumb1_cbz_ok {} {
 # Return 1 if this is an Arm target which supports the Armv6t2 extensions.
 # This can be either in Arm state or in Thumb state.
 
-proc check_effective_target_arm_arch_v6t2_hw_ok {} {
-    if [check_effective_target_arm_thumb1_ok] {
-       return [check_no_compiler_messages arm_movt object {
+proc check_effective_target_arm_arch_v6t2_hw {} {
+    if [check_effective_target_arm_arch_v6t2_ok] {
+       return [check_runtime arm_arch_v6t2 {
            int
            main (void)
            {