]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up pr104188.c testcase for i686-linux [PR104188]
authorJakub Jelinek <jakub@redhat.com>
Wed, 26 Jan 2022 10:58:27 +0000 (11:58 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 26 Jan 2022 10:58:27 +0000 (11:58 +0100)
On i686-linux this new testcase FAILs with:
cc1: warning: SSE instruction set disabled, using 387 arithmetics
FAIL: gcc.target/i386/pr104188.c (test for excess errors)
Excess errors:
cc1: warning: SSE instruction set disabled, using 387 arithmetics
This is because it uses -mfpmath=sse, but -msse2 isn't on.  Fixed
by adding -msse2 to dg-options and requiring sse2_runtime effective
target.

2022-01-26  Jakub Jelinek  <jakub@redhat.com>

PR target/104188
* gcc.target/i386/pr104188.c: Add dg-require-effective-target
sse2_runtime.  Add -msse2 to dg-options.

gcc/testsuite/gcc.target/i386/pr104188.c

index c6f615b962521bcbc04ed2a04c289837c589eb4d..3ddd3bc79b9b5e7a1d1b52e5142ef6eba10a8544 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run { target avx512f } } */
-/* { dg-options "-O2 -mfpmath=sse" } */
+/* { dg-require-effective-target sse2_runtime } */
+/* { dg-options "-O2 -msse2 -mfpmath=sse" } */
 
 #include <x86intrin.h>