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: Minor fixes


Hello,

this fixes a couple of minor issues I noticed while looking for
other things ...

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

Bye,
Ulrich

ChangeLog:

	* config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
	"*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
	("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
	TARGET_ZARCH instead of TARGET_64BIT.

Index: gcc/config/s390/s390.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.md,v
retrieving revision 1.152
diff -c -p -r1.152 s390.md
*** gcc/config/s390/s390.md	22 Jan 2005 21:50:56 -0000	1.152
--- gcc/config/s390/s390.md	11 Feb 2005 12:26:20 -0000
***************
*** 514,520 ****
    "s390_match_ccmode (insn, CCTmode) && TARGET_64BIT"
    "@
     cgr\t%0,%1
!    cghi\t%0,%c1
     cg\t%0,%1
     #"
    [(set_attr "op_type" "RRE,RI,RXY,SS")])
--- 514,520 ----
    "s390_match_ccmode (insn, CCTmode) && TARGET_64BIT"
    "@
     cgr\t%0,%1
!    cghi\t%0,%h1
     cg\t%0,%1
     #"
    [(set_attr "op_type" "RRE,RI,RXY,SS")])
***************
*** 526,532 ****
    "s390_match_ccmode (insn, CCTmode)"
    "@
     cr\t%0,%1
!    chi\t%0,%c1
     c\t%0,%1
     cy\t%0,%1
     #"
--- 526,532 ----
    "s390_match_ccmode (insn, CCTmode)"
    "@
     cr\t%0,%1
!    chi\t%0,%h1
     c\t%0,%1
     cy\t%0,%1
     #"
***************
*** 552,558 ****
    "s390_match_ccmode(insn, CCSmode) && TARGET_64BIT"
    "@
     cgr\t%0,%1
!    cghi\t%0,%c1
     cg\t%0,%1"
    [(set_attr "op_type" "RRE,RI,RXY")])
  
--- 552,558 ----
    "s390_match_ccmode(insn, CCSmode) && TARGET_64BIT"
    "@
     cgr\t%0,%1
!    cghi\t%0,%h1
     cg\t%0,%1"
    [(set_attr "op_type" "RRE,RI,RXY")])
  
***************
*** 573,579 ****
    "s390_match_ccmode(insn, CCSmode)"
    "@
     cr\t%0,%1
!    chi\t%0,%c1
     c\t%0,%1
     cy\t%0,%1"
    [(set_attr "op_type" "RR,RI,RX,RXY")])
--- 573,579 ----
    "s390_match_ccmode(insn, CCSmode)"
    "@
     cr\t%0,%1
!    chi\t%0,%h1
     c\t%0,%1
     cy\t%0,%1"
    [(set_attr "op_type" "RR,RI,RX,RXY")])
***************
*** 2776,2782 ****
  (define_insn "*zero_extendhisi2_64"
    [(set (match_operand:SI 0 "register_operand" "=d")
          (zero_extend:SI (match_operand:HI 1 "memory_operand" "m")))]
!   "TARGET_64BIT"
    "llgh\t%0,%1"
    [(set_attr "op_type" "RXY")])
  
--- 2776,2782 ----
  (define_insn "*zero_extendhisi2_64"
    [(set (match_operand:SI 0 "register_operand" "=d")
          (zero_extend:SI (match_operand:HI 1 "memory_operand" "m")))]
!   "TARGET_ZARCH"
    "llgh\t%0,%1"
    [(set_attr "op_type" "RXY")])
  
***************
*** 2784,2790 ****
    [(set (match_operand:SI 0 "register_operand" "=&d")
          (zero_extend:SI (match_operand:HI 1 "s_operand" "QS")))
     (clobber (reg:CC 33))]
!   "!TARGET_64BIT"
    "#"
    "&& reload_completed"
    [(set (match_dup 0) (const_int 0))
--- 2784,2790 ----
    [(set (match_operand:SI 0 "register_operand" "=&d")
          (zero_extend:SI (match_operand:HI 1 "s_operand" "QS")))
     (clobber (reg:CC 33))]
!   "!TARGET_ZARCH"
    "#"
    "&& reload_completed"
    [(set (match_dup 0) (const_int 0))
-- 
  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]