]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up pr113622-{2,3}.c for i686-linux [PR113622]
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Jan 2024 08:31:22 +0000 (09:31 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 30 Jan 2024 08:31:22 +0000 (09:31 +0100)
The 2 new tests FAIL for me on i686-linux:
.../gcc/testsuite/gcc.target/i386/pr113622-2.c:5:14: error: data type of 'a' isn't suitable for a register
.../gcc/testsuite/gcc.target/i386/pr113622-2.c:5:29: error: data type of 'b' isn't suitable for a register
.../gcc/testsuite/gcc.target/i386/pr113622-2.c:5:44: error: data type of 'c' isn't suitable for a register
The problem is that the tests use vectors of double, something added
only in SSE2, while the testcases ask for just -msse which only provides
vectors of floats.

So, either it should be using floats instead of doubles, or we need
to add -msse2 to dg-options.

I've done the latter.

2024-01-30  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/113622
* gcc.target/i386/pr113622-2.c: Use -msse2 instead of -msse in
dg-options.
* gcc.target/i386/pr113622-3.c: Likewise.

gcc/testsuite/gcc.target/i386/pr113622-2.c
gcc/testsuite/gcc.target/i386/pr113622-3.c

index 7bcc12af27e186cd4f7465efb3c46d159bb4380c..669688a6c935870c19f176b923de8266a223513c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-msse -w" } */
+/* { dg-options "-msse2 -w" } */
 
 typedef double __attribute__ ((vector_size (16))) vec;
 register vec a asm("xmm5"), b asm("xmm6"), c asm("xmm7");
index ca79d4ac901b6cce935532c285ce393fbb081e88..d062b047c686192973fbb2aaa1582704a19b819c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-msse" } */
+/* { dg-options "-msse2" } */
 
 typedef double __attribute__ ((vector_size (16))) vec;