[committed] testsuite: Fix vectcond-1.C FAIL on i686-linux [PR19832]

Message ID ZPHYujtfjzFl2xR6@tucnak
State Unresolved
Headers
Series [committed] testsuite: Fix vectcond-1.C FAIL on i686-linux [PR19832] |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Jakub Jelinek Sept. 1, 2023, 12:27 p.m. UTC
  On Thu, Aug 31, 2023 at 10:24:10AM -0700, Andrew Pinski via Gcc-patches wrote:
> This patch adds the following match patterns to optimize these:
>  /* (a != b) ? (a - b) : 0 -> (a - b) */

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 with
make check-g++ RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-march=i686,-m64\} dg.exp=vectcond-1.C'
on x86_64-linux which previously FAILed, committed to trunk as obvious.

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

	PR tree-optimization/19832
	* g++.dg/opt/vectcond-1.C: Add -Wno-psabi to dg-options.


	Jakub
  

Patch

--- gcc/testsuite/g++.dg/opt/vectcond-1.C.jj	2023-09-01 12:15:36.072430927 +0200
+++ gcc/testsuite/g++.dg/opt/vectcond-1.C	2023-09-01 14:20:22.688739458 +0200
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-ccp1 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fdump-tree-ccp1 -fdump-tree-optimized -Wno-psabi" } */
 /* This is the vector version of these optimizations. */
 /* PR tree-optimization/19832 */