]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.md (*baddu_si_eb, [...]): Merge into...
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 2 Oct 2012 19:37:24 +0000 (19:37 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 2 Oct 2012 19:37:24 +0000 (19:37 +0000)
gcc/
* config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
(*baddu_si): ...this new pattern.

From-SVN: r191997

gcc/ChangeLog
gcc/config/mips/mips.md

index 2bdf6618e76826419582836c233c35dce226cdbb..46cdf7d21a02d0245faeafb72363086bd0ea1675 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
+       (*baddu_si): ...this new pattern.
+
 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
index 86d2c55c55d77a7117a3255396f91c80c8cb3909..787852c2dedd9b2c8ac12a288122c11e1ffea297 100644 (file)
 
 ;; Combiner patterns for unsigned byte-add.
 
-(define_insn "*baddu_si_eb"
+(define_insn "*baddu_si"
   [(set (match_operand:SI 0 "register_operand" "=d")
         (zero_extend:SI
-        (subreg:QI
-         (plus:SI (match_operand:SI 1 "register_operand" "d")
-                  (match_operand:SI 2 "register_operand" "d")) 3)))]
-  "ISA_HAS_BADDU && BYTES_BIG_ENDIAN"
-  "baddu\\t%0,%1,%2"
-  [(set_attr "alu_type" "add")])
-
-(define_insn "*baddu_si_el"
-  [(set (match_operand:SI 0 "register_operand" "=d")
-        (zero_extend:SI
-        (subreg:QI
-         (plus:SI (match_operand:SI 1 "register_operand" "d")
-                  (match_operand:SI 2 "register_operand" "d")) 0)))]
-  "ISA_HAS_BADDU && !BYTES_BIG_ENDIAN"
+        (plus:QI (match_operand:QI 1 "register_operand" "d")
+                 (match_operand:QI 2 "register_operand" "d"))))]
+  "ISA_HAS_BADDU"
   "baddu\\t%0,%1,%2"
   [(set_attr "alu_type" "add")])