[v1] LoongArch: testsuite:Fixed a bug that added a target check error.

Message ID 20240110072459.8851-1-chenxiaolong@loongson.cn
State Unresolved
Headers
Series [v1] LoongArch: testsuite:Fixed a bug that added a target check error. |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

chenxiaolong Jan. 10, 2024, 7:24 a.m. UTC
  After the code is committed in r14-6948, GCC regression testing on some
architectures will produce the following error:

"error executing dg-final: unknown effective target keyword `loongarch*-*-*'"

gcc/testsuite/ChangeLog:

	* lib/target-supports.exp: Removed an issue with "target keyword"
	checking errors on LoongArch architecture.
---
 gcc/testsuite/lib/target-supports.exp | 2 --
 1 file changed, 2 deletions(-)
  

Comments

chenglulu Jan. 10, 2024, 12:18 p.m. UTC | #1
Pushed to r14-7096.

在 2024/1/10 下午3:24, chenxiaolong 写道:
> After the code is committed in r14-6948, GCC regression testing on some
> architectures will produce the following error:
>
> "error executing dg-final: unknown effective target keyword `loongarch*-*-*'"
>
> gcc/testsuite/ChangeLog:
>
> 	* lib/target-supports.exp: Removed an issue with "target keyword"
> 	checking errors on LoongArch architecture.
> ---
>   gcc/testsuite/lib/target-supports.exp | 2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
> index 5c6bb602cc0..dbc4f016091 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -7994,7 +7994,6 @@ proc check_effective_target_vect_widen_mult_qi_to_hi { } {
>   		  || ([istarget aarch64*-*-*]
>   		      && ![check_effective_target_aarch64_sve])
>   		  || [is-effective-target arm_neon]
> -		  || [is-effective-target loongarch*-*-*]
>   		  || ([istarget s390*-*-*]
>   		      && [check_effective_target_s390_vx]))
>   	      || [istarget amdgcn-*-*] }}]
> @@ -8019,7 +8018,6 @@ proc check_effective_target_vect_widen_mult_hi_to_si { } {
>   		     && ![check_effective_target_aarch64_sve])
>   		 || [istarget i?86-*-*] || [istarget x86_64-*-*]
>   		 || [is-effective-target arm_neon]
> -		 || [is-effective-target loongarch*-*-*]
>   		 || ([istarget s390*-*-*]
>   		     && [check_effective_target_s390_vx]))
>   	     || [istarget amdgcn-*-*] }}]
  

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 5c6bb602cc0..dbc4f016091 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -7994,7 +7994,6 @@  proc check_effective_target_vect_widen_mult_qi_to_hi { } {
 		  || ([istarget aarch64*-*-*]
 		      && ![check_effective_target_aarch64_sve])
 		  || [is-effective-target arm_neon]
-		  || [is-effective-target loongarch*-*-*]
 		  || ([istarget s390*-*-*]
 		      && [check_effective_target_s390_vx])) 
 	      || [istarget amdgcn-*-*] }}]
@@ -8019,7 +8018,6 @@  proc check_effective_target_vect_widen_mult_hi_to_si { } {
 		     && ![check_effective_target_aarch64_sve])
 		 || [istarget i?86-*-*] || [istarget x86_64-*-*]
 		 || [is-effective-target arm_neon]
-		 || [is-effective-target loongarch*-*-*]
 		 || ([istarget s390*-*-*]
 		     && [check_effective_target_s390_vx]))
 	     || [istarget amdgcn-*-*] }}]