Hi,

the attached patch fixes a problem with the movcc pattern on S/390.

I've committed the patch to mainline after a regression test.

Ok for GCC 4.8 branch?

Bye,

-Andreas-

2013-07-29  Dominik Vogt  <v...@linux.vnet.ibm.com>

        * config/s390/s390.md ("movcc"): Swap load and store instructions.

---
 gcc/config/s390/s390.md |   12 !!!!!!!!!!!!
 1 file changed, 12 modifications(!)

Index: gcc/config/s390/s390.md
===================================================================
*** gcc/config/s390/s390.md.orig
--- gcc/config/s390/s390.md
***************
*** 2289,2301 ****
     lr\t%0,%1
     tmh\t%1,12288
     ipm\t%0
!    st\t%0,%1
!    sty\t%0,%1
!    l\t%1,%0
!    ly\t%1,%0"
    [(set_attr "op_type" "RR,RI,RRE,RX,RXY,RX,RXY")
!    (set_attr "type" "lr,*,*,store,store,load,load")
!    (set_attr "z10prop" 
"z10_fr_E1,z10_super,*,z10_rec,z10_rec,z10_fwd_A3,z10_fwd_A3")
     (set_attr "z196prop" "*,*,z196_ends,*,*,*,*")])
  
  ;
--- 2289,2301 ----
     lr\t%0,%1
     tmh\t%1,12288
     ipm\t%0
!    l\t%0,%1
!    ly\t%0,%1
!    st\t%1,%0
!    sty\t%1,%0"
    [(set_attr "op_type" "RR,RI,RRE,RX,RXY,RX,RXY")
!    (set_attr "type" "lr,*,*,load,load,store,store")
!    (set_attr "z10prop" 
"z10_fr_E1,z10_super,*,z10_fwd_A3,z10_fwd_A3,z10_rec,z10_rec")
     (set_attr "z196prop" "*,*,z196_ends,*,*,*,*")])
  
  ;

Reply via email to