]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] [x86] double copysign requires -msse2
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:29 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:29 +0000 (06:20 -0300)
commit02788cde86264559ca9cb3323c73c72fd0211c5d
tree6901e757792ce2fd2140e11f40f892b0ee62f5a4
parent4b75decf5297838ef9ddfb842da0117adbe3f975
[testsuite] [x86] double copysign requires -msse2

SSE_FLOAT_MODE_P only holds for DFmode with SSE2, and that's a
condition for copysign<mode>3 to be available under TARGET_SSE_MATH.

Various copysign testcases use -msse -mfpmath=sse on ia32 to enable
the copysign builtins and patterns, but that would only be enough if
the tests were limited to floats.  Since they test doubles as well, we
need -msse2 instead of -msse.

for  gcc/testsuite/ChangeLog

* gcc.dg/fold-copysign-1.c: Bump to sse2 on ia32.
* gcc.dg/pr55152-2.c: Likewise.
* gcc.dg/tree-ssa/abs-4.c: Likewise.
* gcc.dg/tree-ssa/backprop-6.c: Likewise.
gcc/testsuite/gcc.dg/fold-copysign-1.c
gcc/testsuite/gcc.dg/pr55152-2.c
gcc/testsuite/gcc.dg/tree-ssa/abs-4.c
gcc/testsuite/gcc.dg/tree-ssa/backprop-6.c