]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up pr110915* tests on i686-linux [PR110915]
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Sep 2023 12:17:06 +0000 (14:17 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 1 Sep 2023 12:17:06 +0000 (14:17 +0200)
These tests FAIL on i686-linux, with
.../gcc/testsuite/gcc.dg/pr110915-1.c:8:1: warning: MMX vector return without MMX enabled changes the ABI [-Wpsabi]
.../gcc/testsuite/gcc.dg/pr110915-1.c:7:15: warning: MMX vector argument without MMX enabled changes the ABI [-Wpsabi]
excess warnings.  I've added -Wno-psabi to quiet that up, plus I think
it is undesirable to define macros like vector before including C library
headers in case the header would use that identifier in non-obfuscated
form somewhere.

2023-09-01  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/110915
* gcc.dg/pr110915-1.c: Add -Wno-psabi to dg-options.  Move vector
macro definition after limits.h inclusion.
* gcc.dg/pr110915-2.c: Likewise.
* gcc.dg/pr110915-3.c: Likewise.
* gcc.dg/pr110915-4.c: Likewise.
* gcc.dg/pr110915-5.c: Likewise.
* gcc.dg/pr110915-6.c: Likewise.
* gcc.dg/pr110915-7.c: Likewise.
* gcc.dg/pr110915-8.c: Likewise.
* gcc.dg/pr110915-9.c: Likewise.
* gcc.dg/pr110915-10.c: Likewise.
* gcc.dg/pr110915-11.c: Likewise.
* gcc.dg/pr110915-12.c: Likewise.

12 files changed:
gcc/testsuite/gcc.dg/pr110915-1.c
gcc/testsuite/gcc.dg/pr110915-10.c
gcc/testsuite/gcc.dg/pr110915-11.c
gcc/testsuite/gcc.dg/pr110915-12.c
gcc/testsuite/gcc.dg/pr110915-2.c
gcc/testsuite/gcc.dg/pr110915-3.c
gcc/testsuite/gcc.dg/pr110915-4.c
gcc/testsuite/gcc.dg/pr110915-5.c
gcc/testsuite/gcc.dg/pr110915-6.c
gcc/testsuite/gcc.dg/pr110915-7.c
gcc/testsuite/gcc.dg/pr110915-8.c
gcc/testsuite/gcc.dg/pr110915-9.c

index 2e1e871b9a08083cd376b834ef73e994029f92bb..c205e0ed79ec9b59411eaf7d0750e240b447f617 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ifcombine" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed and1(vector unsigned x, vector unsigned y)
 {
   /* (x > y) & (x != 0)  --> x > y */
index b0644bf3123cc43529d1ed24d8cfdbdeac1c085e..283faec0fa0563961afc8b7c255c8652567f54d9 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector unsigned or1(vector unsigned x, vector unsigned y)
 {
   /* (x <= y) | (x != 0))  --> true */
index 0288e53b16b1294623526266d511dbbe44d03296..b3636c6aa26e0321aa26982533f68b218ed80839 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ifcombine" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector unsigned or1(vector unsigned x, vector unsigned y)
 {
   /* (x <= y) | (x == 0)  --> x <= y */
index 054a077ce3eebdc74d830c09a4f051c6303a4ce0..4108fc46319bfabe47388f810f35cb8a78298db1 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-dce3" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-dce3 -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector unsigned or1(vector unsigned x, vector unsigned y)
 {
   /* (x <= y) | (x == 0)  --> x <= y */
index 3962b152078b6ee39229608757f443abe4f9bb24..8d406121d9eb27d437239d7f3e8a4dff90aa1998 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed and1(vector unsigned x, vector unsigned y)
 {
   /* (x > y)   &   (x != 0)  --> x > y */
index c6462b59526aea93c7c143282126e49ca6f06519..3ac70f55c4aa6e4d8c9d0e07dfe423b9cb9c944f 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ifcombine" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed and1(vector unsigned x, vector unsigned y)
 {
   /* (x > y)   &   (x == 0)  --> false */
index 5b28ccdd321e3295c7aa93a670ade67a63d8876c..7e8528ccee97e5345f4db17b0f7006646c217f93 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed and1(vector unsigned x, vector unsigned y)
 {
   /* (x > y)   &   (x == 0)  --> false */
index a8b871d5bcae47337107adcb18ba76f5e2a30cb3..41f407b7cb530648909a9b7cafab48d791730e21 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ifcombine" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed and1(vector unsigned x, vector unsigned y)
 {
   /* (x <= y)   &   (x == 0)  --> x == 0 */
index a3b9cc02a4b94a858aa3fa823eba5bebfc056500..c5b14787bf1fa436e3705c877701c9300e8762a2 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed and1(vector unsigned x, vector unsigned y)
 {
   /* (x <= y)   &   (x == 0)  --> x == 0 */
index fd331e90e4a1e2a8a73f2293dd2121b2d480c9be..f6f7645484e1ac20bd43e8a961ffe6e6c0fba0ca 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ifcombine" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed or1(vector unsigned x, vector unsigned y)
 {
   /* (x > y) | (x != 0)  --> x != 0 */
index fae533cbf224632b6b84c98fdb8fa0f043a4237b..b6ed99b70aa567cb4ef857a2ee9f87a8de470e7a 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed or1(vector unsigned x, vector unsigned y)
 {
   /* (x > y) | (x != 0)  --> x != 0 */
index 07aa08ee00bc62f203eda860dcbb0b8e81c2cac6..ee4dc4392dbbc64e6eedf21333a85e4f66f8b03c 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ifcombine" } */
-#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */
 
 #include <limits.h>
 
+#define vector __attribute__((vector_size(sizeof(unsigned)*2)))
+
 vector signed or1(vector unsigned x, vector unsigned y)
 {
   /* (x <= y) | (x != 0)  --> true */