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] 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"


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