Hi,

the s390 (31 bit) bswap pattern is only available with z900 or higher.
So the testcase fails without specifying -march=z900 (or higher).

Committed to mainline.

Bye,

-Andreas-


2011-03-08  Andreas Krebbel  <andreas.kreb...@de.ibm.com>

        * gcc.dg/optimize-bswapsi-1.c: Use -march=z900 on s390.


Index: gcc/testsuite/gcc.dg/optimize-bswapsi-1.c
===================================================================
*** gcc/testsuite/gcc.dg/optimize-bswapsi-1.c.orig
--- gcc/testsuite/gcc.dg/optimize-bswapsi-1.c
***************
*** 1,6 ****
--- 1,7 ----
  /* { dg-do compile { target arm*-*-* alpha*-*-* i?86-*-* powerpc*-*-* 
rs6000-*-* x86_64-*-* s390*-*-* } } */
  /* { dg-require-effective-target stdint_types } */
  /* { dg-options "-O2 -fdump-tree-bswap" } */
+ /* { dg-options "-O2 -fdump-tree-bswap -march=z900" { target s390-*-* } } */
  
  #include <stdint.h>
  

Reply via email to