On Thu, Nov 28, 2024 at 12:22 PM Jennifer Schmitz <jschm...@nvidia.com> wrote: > > The test gcc.dg/tree-ssa/pow_fold_1.c was failing for 32-bit x86 due to > incompatibility of '-fexcess-precision=16' with '-mfpmath=387'. > In order to resolve this, this patch adds -msse -mfpmath=sse+387 for i?86-*-*.
This is already fixed by [1] that adds missing -mpfpmath=sse to add_options_for_float16 dejagnu procedure. [1] https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669910.html Uros. > > We tested this by running the test on an x86_64 machine with > --target_board={unix/-m32}. > OK for mainline? > > Signed-off-by: Jennifer Schmitz <jschm...@nvidia.com> > > gcc/testsuite/ > PR testsuite/117704 > * gcc.dg/tree-ssa/pow_fold_1.c: Add -msse -mfpmath=sse+387 > for i?86-*-*. > --- > gcc/testsuite/gcc.dg/tree-ssa/pow_fold_1.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pow_fold_1.c > b/gcc/testsuite/gcc.dg/tree-ssa/pow_fold_1.c > index d98bcb0827e..cb9d52e9653 100644 > --- a/gcc/testsuite/gcc.dg/tree-ssa/pow_fold_1.c > +++ b/gcc/testsuite/gcc.dg/tree-ssa/pow_fold_1.c > @@ -1,6 +1,7 @@ > /* { dg-do compile } */ > /* { dg-options "-Ofast -fdump-tree-optimized -fexcess-precision=16" } */ > /* { dg-add-options float16 } */ > +/* { dg-additional-options "-msse -mfpmath=sse+387" { target { i?86-*-* } } > } */ > /* { dg-require-effective-target float16_runtime } */ > /* { dg-require-effective-target c99_runtime } */ > > --