diff mbox series

[2/2] testsuite: [arm] Remove arm_v8_2a_imm8_neon_ok_nocache

Message ID 20210715153454.23549-2-christophe.lyon@foss.st.com
State New
Headers show
Series [1/2] testsuite: [arm] Add missing effective-target to vusdot-autovec.c | expand

Commit Message

Christophe Lyon July 15, 2021, 3:34 p.m. UTC
This patch removes this recently-introduced effective-target, as it
looks like a typo and duplicate for arm_v8_2a_i8mm_ok (imm8 vs i8mm),
and it is not used.

2021-07-15  Christophe Lyon  <christophe.lyon@foss.st.com>

	gcc/testsuite/
	* lib/target-supports.exp (arm_v8_2a_imm8_neon_ok_nocache):
	Delete.
---
 gcc/testsuite/lib/target-supports.exp | 30 ---------------------------
 1 file changed, 30 deletions(-)

Comments

Richard Sandiford July 15, 2021, 4:18 p.m. UTC | #1
Christophe Lyon via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> This patch removes this recently-introduced effective-target, as it
> looks like a typo and duplicate for arm_v8_2a_i8mm_ok (imm8 vs i8mm),
> and it is not used.
>
> 2021-07-15  Christophe Lyon  <christophe.lyon@foss.st.com>
>
> 	gcc/testsuite/
> 	* lib/target-supports.exp (arm_v8_2a_imm8_neon_ok_nocache):
> 	Delete.

OK, thanks.

Richard

> ---
>  gcc/testsuite/lib/target-supports.exp | 30 ---------------------------
>  1 file changed, 30 deletions(-)
>
> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
> index 1c27ccd94af..28950803b13 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -5267,36 +5267,6 @@ proc check_effective_target_arm_v8_2a_dotprod_neon_ok_nocache { } {
>      return 0;
>  }
>  
> -# Return 1 if the target supports ARMv8.2 Adv.SIMD imm8
> -# instructions, 0 otherwise.  The test is valid for ARM and for AArch64.
> -# Record the command line options needed.
> -
> -proc check_effective_target_arm_v8_2a_imm8_neon_ok_nocache { } {
> -    global et_arm_v8_2a_imm8_neon_flags
> -    set et_arm_v8_2a_imm8_neon_flags ""
> -
> -    if { ![istarget arm*-*-*] && ![istarget aarch64*-*-*] } {
> -        return 0;
> -    }
> -
> -    # Iterate through sets of options to find the compiler flags that
> -    # need to be added to the -march option.
> -    foreach flags {"" "-mfloat-abi=softfp -mfpu=neon-fp-armv8" "-mfloat-abi=hard -mfpu=neon-fp-armv8"} {
> -        if { [check_no_compiler_messages_nocache \
> -                  arm_v8_2a_imm8_neon_ok object {
> -	    #include <stdint.h>
> -            #if !defined (__ARM_FEATURE_MATMUL_INT8)
> -            #error "__ARM_FEATURE_MATMUL_INT8 not defined"
> -            #endif
> -        } "$flags -march=armv8.2-a+imm8"] } {
> -            set et_arm_v8_2a_imm8_neon_flags "$flags -march=armv8.2-a+imm8"
> -            return 1
> -        }
> -    }
> -
> -    return 0;
> -}
> -
>  # Return 1 if the target supports ARMv8.1-M MVE
>  # instructions, 0 otherwise.  The test is valid for ARM.
>  # Record the command line options needed.
diff mbox series

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 1c27ccd94af..28950803b13 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5267,36 +5267,6 @@  proc check_effective_target_arm_v8_2a_dotprod_neon_ok_nocache { } {
     return 0;
 }
 
-# Return 1 if the target supports ARMv8.2 Adv.SIMD imm8
-# instructions, 0 otherwise.  The test is valid for ARM and for AArch64.
-# Record the command line options needed.
-
-proc check_effective_target_arm_v8_2a_imm8_neon_ok_nocache { } {
-    global et_arm_v8_2a_imm8_neon_flags
-    set et_arm_v8_2a_imm8_neon_flags ""
-
-    if { ![istarget arm*-*-*] && ![istarget aarch64*-*-*] } {
-        return 0;
-    }
-
-    # Iterate through sets of options to find the compiler flags that
-    # need to be added to the -march option.
-    foreach flags {"" "-mfloat-abi=softfp -mfpu=neon-fp-armv8" "-mfloat-abi=hard -mfpu=neon-fp-armv8"} {
-        if { [check_no_compiler_messages_nocache \
-                  arm_v8_2a_imm8_neon_ok object {
-	    #include <stdint.h>
-            #if !defined (__ARM_FEATURE_MATMUL_INT8)
-            #error "__ARM_FEATURE_MATMUL_INT8 not defined"
-            #endif
-        } "$flags -march=armv8.2-a+imm8"] } {
-            set et_arm_v8_2a_imm8_neon_flags "$flags -march=armv8.2-a+imm8"
-            return 1
-        }
-    }
-
-    return 0;
-}
-
 # Return 1 if the target supports ARMv8.1-M MVE
 # instructions, 0 otherwise.  The test is valid for ARM.
 # Record the command line options needed.