This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] bswap testcase on s390 - use -march=z900
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Mar 2011 18:44:59 +0100
- Subject: [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>