This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] bswap testcase on s390 - use -march=z900


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.Krebbel@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>
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]