[gcc r17-3057] testsuite: Fix copysign tests on ilp32 x86 [PR109843, PR112472]

Eikansh Gupta via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:2cf463c555a85b39f645173703c75bd4e38c8fef

commit r17-3057-g2cf463c555a85b39f645173703c75bd4e38c8fef
Author: Eikansh Gupta <[email protected]>
Date:   Fri Aug 7 15:07:46 2026 +0530

    testsuite: Fix copysign tests on ilp32 x86 [PR109843, PR112472]
    
            PR tree-optimization/109843
            PR tree-optimization/112472
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/tree-ssa/pr109843.c: Add -msse2 -mfpmath=sse for ilp32 x86.
            * gcc.dg/tree-ssa/pr112472.c: Likewise.
    
    Signed-off-by: Eikansh Gupta <[email protected]>

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/pr109843.c | 1 +
 gcc/testsuite/gcc.dg/tree-ssa/pr112472.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr109843.c b/gcc/testsuite/gcc.dg/tree-ssa/pr109843.c
index a7138ee58178..34e384f095b6 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr109843.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr109843.c
@@ -1,6 +1,7 @@
 /* PR tree-optimization/109843 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-additional-options "-msse2 -mfpmath=sse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
 
 #include <stdbool.h>
 
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr112472.c b/gcc/testsuite/gcc.dg/tree-ssa/pr112472.c
index 6838c73c77e1..ec07effad5be 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr112472.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr112472.c
@@ -1,6 +1,7 @@
 /* PR tree-optimization/112472 */
 /* { dg-do compile } */
 /* { dg-options "-O1 -fdump-tree-optimized" } */
+/* { dg-additional-options "-msse2 -mfpmath=sse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
 
 /* (trunc)copysign ((extend)a, CST) with a negative CST should be
    simplified to .COPYSIGN (a, -1.0e+0).  */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.