]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000/testsuite: xfail bswap-brw.c
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 21 Apr 2022 18:35:32 +0000 (18:35 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Thu, 21 Apr 2022 21:30:53 +0000 (21:30 +0000)
This testcase does not generate anywhere near optimal code for 32-bit
code.  For p10 it actually now fails this testcase, after the previous
patch.  Let's xfail it.

2022-04-21  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
PR target/103197
PR target/102146
* gcc.target/powerpc/bswap-brw.c: Add xfail on scan-assembler for -m32.

gcc/testsuite/gcc.target/powerpc/bswap-brw.c

index b3f923eea84816f6e29a35b1122d08fd8b7376f2..0ed2a7bd1d25949ed75de6d45e210b83e1a73a69 100644 (file)
@@ -17,6 +17,6 @@ bswap_int_dbl (unsigned int a)
   /* Force the value to be loaded into a vector register.  */
   __asm__ (" # %x0" : "+wa" (b));
 
-  /* { dg-final { scan-assembler {\mxxbrw\M} } } */
+  /* { dg-final { scan-assembler {\mxxbrw\M} {xfail {has_arch_pwr10 && {! has_arch_ppc64}}} } } */
   return (double) __builtin_bswap32 (b);
 }