[gcc(refs/users/aoliva/heads/testme)] testsuite: select -mfpmath=sse for pr32964.c on x86

Alexandre Oliva aoliva@gcc.gnu.org
Sun Mar 29 05:31:45 GMT 2026


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

commit c13908a08f51f80166aaf1289f02636658174af5
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Sat Mar 28 12:50:56 2026 -0300

    testsuite: select -mfpmath=sse for pr32964.c on x86
    
    When using the 387 FPU, we don't perform the expected optimization of
    unions to floats.  Setting -fexcess-precision=standard. doesn't fix it
    for x86, but selecting -mfpmath=sse and forcing sse enabled does.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.dg/tree-ssa/pr32964.c: Select the SSE FPU on x86.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/pr32964.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr32964.c b/gcc/testsuite/gcc.dg/tree-ssa/pr32964.c
index 3d587119de90..1c3baa62b98c 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr32964.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr32964.c
@@ -1,5 +1,8 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -fdump-tree-optimized" } */
+/* We don't get the expected optimization any more when x87's excess precision
+   is available.  */
+/* { dg-additional-options "-msse -mfpmath=sse" { target x86 } } */
 
 union A
 {


More information about the Gcc-cvs mailing list