diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2008-12-11 22:50:12 +0000 |
---|---|---|
committer | Adam Nemet <nemet@gcc.gnu.org> | 2008-12-11 22:50:12 +0000 |
commit | 90a37af69f10782933e027450387f39670dd37af (patch) | |
tree | 52ccd67c4acff03a4acaf8813e0ef0974b8fd200 /gcc | |
parent | e81489b325d46b6eb4ee541ea81b74a63e99c6bb (diff) | |
download | gcc-90a37af69f10782933e027450387f39670dd37af.zip gcc-90a37af69f10782933e027450387f39670dd37af.tar.gz gcc-90a37af69f10782933e027450387f39670dd37af.tar.bz2 |
* config/mips/mips.md (*branch_bit<bbv><mode>,
*branch_bit<bbv><mode>_inverted): Renumber operands so that the
label becomes operands[1].
From-SVN: r142694
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 64a7b92..c792f1e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-12-11 Adam Nemet <anemet@caviumnetworks.com> + + * config/mips/mips.md (*branch_bit<bbv><mode>, + *branch_bit<bbv><mode>_inverted): Renumber operands so that the + label becomes operands[1]. + 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> PR tree-optimization/38446 diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index b9226c5..1b26f02 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -5203,18 +5203,18 @@ [(set (pc) (if_then_else (equality_op (zero_extract:GPR - (match_operand:GPR 1 "register_operand" "d") + (match_operand:GPR 0 "register_operand" "d") (const_int 1) (match_operand 2 "const_int_operand" "")) (const_int 0)) - (label_ref (match_operand 0 "")) + (label_ref (match_operand 1 "")) (pc)))] "ISA_HAS_BBIT && UINTVAL (operands[2]) < GET_MODE_BITSIZE (<MODE>mode)" { return mips_output_conditional_branch (insn, operands, - MIPS_BRANCH ("bbit<bbv>", "%1,%2,%0"), - MIPS_BRANCH ("bbit<bbinv>", "%1,%2,%0")); + MIPS_BRANCH ("bbit<bbv>", "%0,%2,%1"), + MIPS_BRANCH ("bbit<bbinv>", "%0,%2,%1")); } [(set_attr "type" "branch") (set_attr "mode" "none") @@ -5224,18 +5224,18 @@ [(set (pc) (if_then_else (equality_op (zero_extract:GPR - (match_operand:GPR 1 "register_operand" "d") + (match_operand:GPR 0 "register_operand" "d") (const_int 1) (match_operand 2 "const_int_operand" "")) (const_int 0)) (pc) - (label_ref (match_operand 0 ""))))] + (label_ref (match_operand 1 ""))))] "ISA_HAS_BBIT && UINTVAL (operands[2]) < GET_MODE_BITSIZE (<MODE>mode)" { return mips_output_conditional_branch (insn, operands, - MIPS_BRANCH ("bbit<bbinv>", "%1,%2,%0"), - MIPS_BRANCH ("bbit<bbv>", "%1,%2,%0")); + MIPS_BRANCH ("bbit<bbinv>", "%0,%2,%1"), + MIPS_BRANCH ("bbit<bbv>", "%0,%2,%1")); } [(set_attr "type" "branch") (set_attr "mode" "none") |