This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Committed] S/390: Limit bswap pattern to z900 or later
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Jun 2009 11:30:48 +0200
- Subject: [Committed] S/390: Limit bswap pattern to z900 or later
Hi,
the bswap instructions on S/390 are available starting with z900.
I've applied the attached patch to mainline and 4.4 branch.
Bye,
-Andreas
2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md ("bswap<mode>2"): Only available on z900.
Index: gcc/config/s390/s390.md
===================================================================
--- gcc/config/s390/s390.md.orig 2009-06-15 08:59:48.000000000 +0200
+++ gcc/config/s390/s390.md 2009-06-15 10:04:54.000000000 +0200
@@ -8739,7 +8739,7 @@
(define_insn "bswap<mode>2"
[(set (match_operand:GPR 0 "register_operand" "=d, d")
(bswap:GPR (match_operand:GPR 1 "nonimmediate_operand" " d,RT")))]
- ""
+ "TARGET_CPU_ZARCH"
"@
lrv<g>r\t%0,%1
lrv<g>\t%0,%1"