[committed] testsuite: Fix up pr110915* tests on i686-linux [PR110915]
Checks
Commit Message
On Wed, Aug 30, 2023 at 03:25:11PM -0700, Andrew Pinski via Gcc-patches wrote:
> This simple patch extends the min_value/max_value match to vector integer types.
> Using uniform_integer_cst_p makes this easy.
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.
Tested on x86_64-linux with
make check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-march=i686,-m64\} dg.exp=pr110915*'
which previously FAILed, committed to trunk as obvious.
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.
Jakub
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */