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]

S/390: Fix *addsi3_sign pattern


Hello,

this fixes insn "*addsi3_sign" which was never matched
due to non-canonical RTL in the insn pattern.

Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux,
applied to mainline.

Bye,
Ulrich

ChangeLog:

	* config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.

Index: gcc/config/s390/s390.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.md,v
retrieving revision 1.139
diff -c -p -r1.139 s390.md
*** gcc/config/s390/s390.md	3 Nov 2004 21:39:48 -0000	1.139
--- gcc/config/s390/s390.md	4 Nov 2004 11:36:41 -0000
***************
*** 3655,3662 ****
  
  (define_insn "*addsi3_sign"
    [(set (match_operand:SI 0 "register_operand" "=d,d")
!         (plus:SI (match_operand:SI 1 "register_operand" "0,0")
!                  (sign_extend:SI (match_operand:HI 2 "memory_operand" "R,T"))))
     (clobber (reg:CC 33))]
    ""
    "@
--- 3655,3662 ----
  
  (define_insn "*addsi3_sign"
    [(set (match_operand:SI 0 "register_operand" "=d,d")
!         (plus:SI (sign_extend:SI (match_operand:HI 2 "memory_operand" "R,T"))
!                  (match_operand:SI 1 "register_operand" "0,0")))
     (clobber (reg:CC 33))]
    ""
    "@
-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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