This is the mail archive of the gcc-bugs@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]

Minor sh.md patch



In gcc/config/sh/sh.md, the xorsi3 insn has its operands alternatives 
swapped relative to the and and iorsi3 insns, so this patch makes them
consistent:

*** sh.md.bak   Mon Mar 23 17:59:48 1998
--- sh.md       Mon Mar 23 18:00:07 1998
***************
*** 901,909 ****
    [(set_attr "type" "arith")])
  
  (define_insn "xorsi3"
!   [(set (match_operand:SI 0 "arith_reg_operand" "=z,r")
        (xor:SI (match_operand:SI 1 "arith_reg_operand" "%0,0")
!               (match_operand:SI 2 "logical_operand" "L,r")))]
    ""
    "xor        %2,%0"
    [(set_attr "type" "arith")])
--- 901,909 ----
    [(set_attr "type" "arith")])
  
  (define_insn "xorsi3"
!   [(set (match_operand:SI 0 "arith_reg_operand" "=r,z")
        (xor:SI (match_operand:SI 1 "arith_reg_operand" "%0,0")
!               (match_operand:SI 2 "logical_operand" "r,L")))]
    ""
    "xor        %2,%0"
    [(set_attr "type" "arith")])

Toshi


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