diff mbox

[rs6000] Fix 32-bit BE failure for gcc.target/powerpc/fold-vec-add-7.c

Message ID 86fc8d56-e1d4-7932-37ce-af18fb3036ed@linux.vnet.ibm.com
State New
Headers show

Commit Message

Bill Schmidt Dec. 8, 2016, 3:05 a.m. UTC
Hi,

Andreas Schwab observed that the subject test case fails on 32-bit big-endian
because the test is not restricted to targets that support __int128.  This
patch rectifies that.

Tested on powerpc64-unknown-linux-gnu and verified that the test is flagged
as unsupported for BE, but runs correctly on LE.  Tested on powerpc64le-
unknown-linux-gnu and verified that the test runs correctly there.  Is this
ok for trunk?

Thanks,
Bill


2016-12-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* gcc.target/powerpc/fold-vec-add-7.c: Require effective target to
	support __int128.

Comments

Segher Boessenkool Dec. 9, 2016, 2:35 a.m. UTC | #1
On Wed, Dec 07, 2016 at 09:05:13PM -0600, Bill Schmidt wrote:
> Andreas Schwab observed that the subject test case fails on 32-bit big-endian
> because the test is not restricted to targets that support __int128.  This
> patch rectifies that.
> 
> Tested on powerpc64-unknown-linux-gnu and verified that the test is flagged
> as unsupported for BE, but runs correctly on LE.  Tested on powerpc64le-
> unknown-linux-gnu and verified that the test runs correctly there.  Is this
> ok for trunk?

Yes, thanks!


Segher


> 2016-12-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
> 
> 	* gcc.target/powerpc/fold-vec-add-7.c: Require effective target to
> 	support __int128.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c	(revision 243331)
+++ gcc/testsuite/gcc.target/powerpc/fold-vec-add-7.c	(working copy)
@@ -3,6 +3,7 @@ 
 
 /* { dg-do compile } */
 /* { dg-require-effective-target powerpc_p8vector_ok } */
+/* { dg-require-effective-target int128 } */
 /* { dg-options "-maltivec -mvsx -mpower8-vector" } */
 /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */