https://gcc.gnu.org/g:4f650ef8d56ca61ed4d0df9bdcd810b6a2e808df

commit r15-5817-g4f650ef8d56ca61ed4d0df9bdcd810b6a2e808df
Author: Lulu Cheng <chengl...@loongson.cn>
Date:   Tue Nov 26 14:51:30 2024 +0800

    LoongArch: testsuite: Fix loongarch/vect-frint-scalar.c.
    
    In r15-5327, change the default language version for C compilation from
    -std=gnu17 to -std=gnu23.
    
    ISO C99 and C11 allow ceil, floor, round and trunc, and their float and
    long double variants, to raise the “inexact” exception,
    but ISO/IEC TS 18661-1:2014, the C bindings to IEEE 754-2008, as
    integrated into ISO C23, does not allow these functions to do so.
    
    So add '-ffp-int-builtin-inexact' to this test case.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/loongarch/vect-frint-scalar.c: Add
            '-ffp-int-builtin-inexact'.

Diff:
---
 gcc/testsuite/gcc.target/loongarch/vect-frint-scalar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/loongarch/vect-frint-scalar.c 
b/gcc/testsuite/gcc.target/loongarch/vect-frint-scalar.c
index c7cb40be7d42..dbcb9065ad48 100644
--- a/gcc/testsuite/gcc.target/loongarch/vect-frint-scalar.c
+++ b/gcc/testsuite/gcc.target/loongarch/vect-frint-scalar.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -mlsx" } */
+/* { dg-options "-O2 -mlsx -ffp-int-builtin-inexact" } */
 
 #define test(func, suffix) \
 __typeof__ (1.##suffix) \

Reply via email to