From: Jakub Jelinek <jakub@redhat.com>
To: Andrew Pinski <apinski@marvell.com>
Cc: gcc-patches@gcc.gnu.org
Subject: [committed] testsuite: Fix up pr110915* tests on i686-linux [PR110915]
Date: Fri, 1 Sep 2023 14:26:06 +0200 [thread overview]
Message-ID: <ZPHYXvh9dleHKnOR@tucnak> (raw)
In-Reply-To: <20230830222511.685346-1-apinski@marvell.com>
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.
--- gcc/testsuite/gcc.dg/pr110915-1.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-1.c 2023-09-01 14:12:47.937873487 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-2.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-2.c 2023-09-01 14:12:52.791808013 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-3.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-3.c 2023-09-01 14:12:57.514744307 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-4.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-4.c 2023-09-01 14:13:02.094682529 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-5.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-5.c 2023-09-01 14:13:06.609621628 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-6.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-6.c 2023-09-01 14:13:11.175560039 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-7.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-7.c 2023-09-01 14:13:15.838497142 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-8.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-8.c 2023-09-01 14:13:20.579433193 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-9.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-9.c 2023-09-01 14:13:27.147344600 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-10.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-10.c 2023-09-01 14:12:30.660106543 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-11.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-11.c 2023-09-01 14:12:36.510027635 +0200
@@ -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 */
--- gcc/testsuite/gcc.dg/pr110915-12.c.jj 2023-08-31 19:52:16.889305069 +0200
+++ gcc/testsuite/gcc.dg/pr110915-12.c 2023-09-01 14:12:41.322962714 +0200
@@ -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 */
Jakub
prev parent reply other threads:[~2023-09-01 12:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-30 22:25 [PATCH] MATCH: extend min_value/max_value match to vectors Andrew Pinski
2023-08-31 12:16 ` Richard Biener
2023-09-01 12:26 ` Jakub Jelinek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZPHYXvh9dleHKnOR@tucnak \
--to=jakub@redhat.com \
--cc=apinski@marvell.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).