From: Alexandre Oliva Date: Wed, 21 May 2025 09:20:59 +0000 (-0300) Subject: [testsuite] [x86] pr108938-3.c needs -msse2 for bswap in foo2 with -m32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3392849511c9b9eb1d912a547f2441cece766e3b;p=thirdparty%2Fgcc.git [testsuite] [x86] pr108938-3.c needs -msse2 for bswap in foo2 with -m32 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. --- diff --git a/gcc/testsuite/gcc.target/i386/pr108938-3.c b/gcc/testsuite/gcc.target/i386/pr108938-3.c index 757a0c456bc..47293d49bb9 100644 --- a/gcc/testsuite/gcc.target/i386/pr108938-3.c +++ b/gcc/testsuite/gcc.target/i386/pr108938-3.c @@ -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 } } } */