diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-19 17:07:02 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-19 17:07:02 -0400 |
commit | cd6bd5fccba87c750de47b47a9f54865546546d0 (patch) | |
tree | ffd374441db969d96d8b72c94a2381aa73a0be48 /gcc/config | |
parent | 3511415dafa8e57895092748cdb9ce5b39aaf9f0 (diff) | |
download | gcc-cd6bd5fccba87c750de47b47a9f54865546546d0.zip gcc-cd6bd5fccba87c750de47b47a9f54865546546d0.tar.gz gcc-cd6bd5fccba87c750de47b47a9f54865546546d0.tar.bz2 |
(fancy_btst,fancy_btst1): Branch target must be operand 0 for length
attribute to work.
From-SVN: r10249
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/h8300/h8300.md | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index b9d8b7c..1754bb0 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2167,42 +2167,42 @@ (define_insn "fancy_btst" [(set (pc) - (if_then_else (eq (zero_extract:HI (zero_extend:HI (match_operand:QI 0 "general_operand" "Ur")) + (if_then_else (eq (zero_extract:HI (zero_extend:HI (match_operand:QI 1 "general_operand" "Ur")) (const_int 1) - (match_operand:HI 1 "nonmemory_operand" "rn")) + (match_operand:HI 2 "nonmemory_operand" "rn")) (const_int 0)) - (label_ref (match_operand 2 "" "")) + (label_ref (match_operand 0 "" "")) (pc)))] "" "* { if (get_attr_length (insn) == 2) - return \"btst %X1,%X0\;beq %l2\"; + return \"btst %X2,%X1\;beq %l0\"; else if (get_attr_length (insn) == 4) - return \"btst %X1,%X0\;beq %l2:16\"; + return \"btst %X2,%X1\;beq %l0:16\"; else - return \"btst %X1,%X0\;bne %L0\;jmp @%l2\;%L0:\"; + return \"btst %X2,%X1\;bne %L1\;jmp @%l0\;%L1:\"; }" [(set_attr "type" "branch") (set_attr "cc" "clobber")]) (define_insn "fancy_btst1" [(set (pc) - (if_then_else (ne (zero_extract:HI (zero_extend:HI (match_operand:QI 0 "general_operand" "Ur")) + (if_then_else (ne (zero_extract:HI (zero_extend:HI (match_operand:QI 1 "general_operand" "Ur")) (const_int 1) - (match_operand:HI 1 "nonmemory_operand" "rn")) + (match_operand:HI 2 "nonmemory_operand" "rn")) (const_int 0)) - (label_ref (match_operand 2 "" "")) + (label_ref (match_operand 0 "" "")) (pc)))] "" "* { if (get_attr_length (insn) == 2) - return \"btst %X1,%X0\;bne %l2\"; + return \"btst %X2,%X1\;bne %l0\"; else if (get_attr_length (insn) == 4) - return \"btst %X1,%X0\;bne %l2:16\"; + return \"btst %X2,%X1\;bne %l0:16\"; else - return \"btst %X1,%X0\;beq %L0\;jmp @%l2\;%L0:\"; + return \"btst %X2,%X1\;beq %L1\;jmp @%l0\;%L1:\"; }" [(set_attr "type" "branch") (set_attr "cc" "clobber")]) |