* gcc.target/i386/pr70007.c: Tweak.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 2 Mar 2016 07:57:17 +0000 (07:57 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 2 Mar 2016 07:57:17 +0000 (07:57 +0000)
From-SVN: r233894

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr70007.c

index 0d9a70e01ae0208c828ab53a343436e5cd99e914..d84f3760a62d3fb023edb66d4ecd0efa84376eb3 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-02  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc.target/i386/pr70007.c: Tweak.
+
 2016-03-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
 
        * gfortran.dg/bessel_6.f90: Reduce accuracy for S/390.
index 6b457eecb30230c903c3b4960d71bf64e05f6bd8..ff58d176683e4369af0916792620028d20831e9d 100644 (file)
@@ -1,7 +1,9 @@
 /* PR rtl-optimization/70007 */
-/* { dg-do run } */
-/* { dg-options "-O -fgcse -mbmi2" } */
-/* { dg-require-effective-target bmi2 } */
+/* { dg-do run { target bmi2 } } */
+/* { dg-options "-O -fgcse -mbmi2 -Wno-psabi" } */
+/* { dg-require-effective-target int128 } */
+
+#include "bmi2-check.h"
 
 typedef unsigned short v32u16 __attribute__ ((vector_size (32)));
 typedef unsigned long long v32u64 __attribute__ ((vector_size (32)));
@@ -19,11 +21,10 @@ foo (v32u16 v32u16_0, v32u64 v32u64_0, v32u64 v32u64_1)
   return v32u64_1[3];
 }
 
-int
-main (void)
+static void
+bmi2_test ()
 {
-  u128 x = foo((v32u16){~0xba31, 0x47c6}, (v32u64){64}, (v32u64){0, 0x8b217e2514d23242, 0xac569b6dff9f82, 0x9d4cffe03c139c});
+  u128 x = foo((v32u16){(unsigned short) ~0xba31, 0x47c6}, (v32u64){64}, (v32u64){0, 0x8b217e2514d23242, 0xac569b6dff9f82, 0x9d4cffe03c139c});
   if (x != 0x3c74da5ca328d09)
     __builtin_abort();
-  return 0;
 }