Message ID | 20220105090525.GO2646553@tucnak |
---|---|
State | New |
Headers | show |
Series | [committed] testsuite: Fix gcc.target/i386/pr103895.c testcase [PR103895] | expand |
On Jan 05 2022, Jakub Jelinek via Gcc-patches wrote: > The testcase uses SSE and SSE2 intrinsics, so fails on i686-linux > if -msse2 isn't enabled by default. Fixed by adding -msse2 to > dg-options. Shouldn't that use { dg-require-effective-target sse2 }?
On Wed, Jan 05, 2022 at 10:16:30AM +0100, Andreas Schwab wrote: > On Jan 05 2022, Jakub Jelinek via Gcc-patches wrote: > > > The testcase uses SSE and SSE2 intrinsics, so fails on i686-linux > > if -msse2 isn't enabled by default. Fixed by adding -msse2 to > > dg-options. > > Shouldn't that use { dg-require-effective-target sse2 }? Not necessarily, it is a dg-do compile test, so it doesn't care if assembler can assemble sse2 instructions or not. Jakub
--- gcc/testsuite/gcc.target/i386/pr103895.c.jj 2022-01-04 23:11:22.788586688 +0100 +++ gcc/testsuite/gcc.target/i386/pr103895.c 2022-01-05 01:30:33.926589366 +0100 @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Og -ffloat-store" } */ +/* { dg-options "-Og -ffloat-store -msse2" } */ #include <emmintrin.h> typedef float vFloat __attribute__((__vector_size__(16)));