https://gcc.gnu.org/g:d171f214a43b1b18f1fc9b6aa1fc8a9e8c50953c

commit r15-7465-gd171f214a43b1b18f1fc9b6aa1fc8a9e8c50953c
Author: Xi Ruoyao <xry...@xry111.site>
Date:   Wed Feb 5 09:16:19 2025 +0800

    testsuite: LoongArch: Remove from btrunc, ceil, and floor effective target 
allowlist
    
    Now that C default is C23, so we can no longer use LSX/LASX instructions
    for these operations as the standard disallows raising INEXACT
    exceptions.  So LoongArch is no longer suitable for these effective
    targets.
    
    Fix the test failures on gcc.dg/vect/vect-rounding-*.c.  For the old
    standards or -ffp-int-builtin-inexact we already provide test coverage
    with gcc.target/loongarch/vect-ftint.c.
    
    gcc/testsuite/ChangeLog:
    
            * lib/target-supports.exp
            (check_effective_target_vect_call_btrunc): Drop LoongArch.
            (check_effective_target_vect_call_btruncf): Likewise.
            (check_effective_target_vect_call_ceil): Likewise.
            (check_effective_target_vect_call_ceilf): Likewise.
            (check_effective_target_vect_call_floor): Likewise.
            (check_effective_target_vect_call_floorf): Likewise.
            (check_effective_target_vect_call_lfloor): Likewise.
            (check_effective_target_vect_call_lfloorf): Likewise.

Diff:
---
 gcc/testsuite/lib/target-supports.exp | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/gcc/testsuite/lib/target-supports.exp 
b/gcc/testsuite/lib/target-supports.exp
index fe1eb34cf228..ff95b88f3c40 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9708,8 +9708,7 @@ proc check_effective_target_vect_call_lrint { } {
 proc check_effective_target_vect_call_btrunc { } {
     return [check_cached_effective_target_indexed vect_call_btrunc {
       expr { [istarget aarch64*-*-*]
-            || [istarget amdgcn-*-*]
-            || [istarget loongarch*-*-*] }}]
+            || [istarget amdgcn-*-*] }}]
 }
 
 # Return 1 if the target supports vector btruncf calls.
@@ -9717,8 +9716,7 @@ proc check_effective_target_vect_call_btrunc { } {
 proc check_effective_target_vect_call_btruncf { } {
     return [check_cached_effective_target_indexed vect_call_btruncf {
       expr { [istarget aarch64*-*-*]
-            || [istarget amdgcn-*-*]
-            || [istarget loongarch*-*-*] }}]
+            || [istarget amdgcn-*-*] }}]
 }
 
 # Return 1 if the target supports vector ceil calls.
@@ -9726,8 +9724,7 @@ proc check_effective_target_vect_call_btruncf { } {
 proc check_effective_target_vect_call_ceil { } {
     return [check_cached_effective_target_indexed vect_call_ceil {
       expr { [istarget aarch64*-*-*]
-            || [istarget amdgcn-*-*]
-            || [istarget loongarch*-*-*] }}]
+            || [istarget amdgcn-*-*] }}]
 }
 
 # Return 1 if the target supports vector ceilf calls.
@@ -9735,8 +9732,7 @@ proc check_effective_target_vect_call_ceil { } {
 proc check_effective_target_vect_call_ceilf { } {
     return [check_cached_effective_target_indexed vect_call_ceilf {
       expr { [istarget aarch64*-*-*]
-            || [istarget amdgcn-*-*]
-            || [istarget loongarch*-*-*] }}]
+            || [istarget amdgcn-*-*] }}]
 }
 
 # Return 1 if the target supports vector floor calls.
@@ -9744,8 +9740,7 @@ proc check_effective_target_vect_call_ceilf { } {
 proc check_effective_target_vect_call_floor { } {
     return [check_cached_effective_target_indexed vect_call_floor {
       expr { [istarget aarch64*-*-*]
-            || [istarget amdgcn-*-*]
-            || [istarget loongarch*-*-*] }}]
+            || [istarget amdgcn-*-*] }}]
 }
 
 # Return 1 if the target supports vector floorf calls.
@@ -9753,24 +9748,21 @@ proc check_effective_target_vect_call_floor { } {
 proc check_effective_target_vect_call_floorf { } {
     return [check_cached_effective_target_indexed vect_call_floorf {
       expr { [istarget aarch64*-*-*]
-            || [istarget amdgcn-*-*]
-            || [istarget loongarch*-*-*] }}]
+            || [istarget amdgcn-*-*] }}]
 }
 
 # Return 1 if the target supports vector lceil calls.
 
 proc check_effective_target_vect_call_lceil { } {
     return [check_cached_effective_target_indexed vect_call_lceil {
-      expr { [istarget aarch64*-*-*]
-            || [istarget loongarch*-*-*] }}]
+      expr { [istarget aarch64*-*-*] }}]
 }
 
 # Return 1 if the target supports vector lfloor calls.
 
 proc check_effective_target_vect_call_lfloor { } {
     return [check_cached_effective_target_indexed vect_call_lfloor {
-      expr { [istarget aarch64*-*-*]
-            || [istarget loongarch*-*-*] }}]
+      expr { [istarget aarch64*-*-*] }}]
 }
 
 # Return 1 if the target supports vector nearbyint calls.

Reply via email to