]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [x86] pr108938-3.c needs -msse2 for bswap in foo2 with -m32
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:59 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:59 +0000 (06:20 -0300)
Without SSE2, we don't combine the separate loads in foo2 and get
separate rotates, instead of a bswap.

for  gcc/testsuite/ChangeLog

* gcc.target/i386/pr108938-3.c: Add -msse2.

gcc/testsuite/gcc.target/i386/pr108938-3.c

index 757a0c456bc45bc7ed4b69709023a80f77bc948b..47293d49bb9ea63215538017fb91f4b9174453bf 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -mno-movbe -mno-avx" } */
+/* { dg-options "-O2 -ftree-vectorize -mno-movbe -msse2 -mno-avx" } */
 /* { dg-final { scan-assembler-times "bswap\[\t ]+" 2 { target { ! ia32 } } } } */
 /* { dg-final { scan-assembler-times "bswap\[\t ]+" 3 { target ia32 } } } */