* config/rx/rx.md: Disable extender peepholes at -O3.
authorNick Clifton <nickc@redhat.com>
Tue, 9 Aug 2011 10:32:07 +0000 (10:32 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 9 Aug 2011 10:32:07 +0000 (10:32 +0000)
From-SVN: r177585

gcc/ChangeLog
gcc/config/rx/rx.md

index 5832ec1f76011c974ba298101049c5a4935670a2..f994568448da41ee043712dcaf4f5422befeb34b 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-09  Nick Clifton  <nickc@redhat.com>
+
+       * config/rx/rx.md: Disable extender peepholes at -O3.
+
 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/49781
index 070f248bbdf44b7e46a788a68f6d9ccc0f41c9c9..544880a74adab42680cd09a4243450580abfab67 100644 (file)
                   (memex_commutative:SI (match_dup 0)
                                         (match_dup 2)))
              (clobber (reg:CC CC_REG))])]
-  "peep2_regno_dead_p (2, REGNO (operands[0]))"
+  "peep2_regno_dead_p (2, REGNO (operands[0])) && (optimize < 3 || optimize_size)"
   [(parallel [(set:SI (match_dup 2)
                      (memex_commutative:SI (match_dup 2)
                                            (extend_types:SI (match_dup 1))))
                   (memex_commutative:SI (match_dup 2)
                                         (match_dup 0)))
              (clobber (reg:CC CC_REG))])]
-  "peep2_regno_dead_p (2, REGNO (operands[0]))"
+  "peep2_regno_dead_p (2, REGNO (operands[0])) && (optimize < 3 || optimize_size)"
   [(parallel [(set:SI (match_dup 2)
                      (memex_commutative:SI (match_dup 2)
                                            (extend_types:SI (match_dup 1))))
                   (memex_noncomm:SI (match_dup 2)
                                     (match_dup 0)))
              (clobber (reg:CC CC_REG))])]
-  "peep2_regno_dead_p (2, REGNO (operands[0]))"
+  "peep2_regno_dead_p (2, REGNO (operands[0])) && (optimize < 3 || optimize_size)"
   [(parallel [(set:SI (match_dup 2)
                      (memex_noncomm:SI (match_dup 2)
                                        (extend_types:SI (match_dup 1))))
    (set (match_operand:SI                               2 "register_operand")
        (memex_nocc:SI (match_dup 0)
                       (match_dup 2)))]
-  "peep2_regno_dead_p (2, REGNO (operands[0]))"
+  "peep2_regno_dead_p (2, REGNO (operands[0])) && (optimize < 3 || optimize_size)"
   [(set:SI (match_dup 2)
           (memex_nocc:SI (match_dup 2)
                          (extend_types:SI (match_dup 1))))]
    (set (match_operand:SI                               2 "register_operand")
        (memex_nocc:SI (match_dup 2)
                       (match_dup 0)))]
-  "peep2_regno_dead_p (2, REGNO (operands[0]))"
+  "peep2_regno_dead_p (2, REGNO (operands[0])) && (optimize < 3 || optimize_size)"
   [(set:SI (match_dup 2)
           (memex_nocc:SI (match_dup 2)
                          (extend_types:SI (match_dup 1))))]
        (memex_commutative:SI (match_operand:SI                               1 "register_operand" "%0")
                              (extend_types:SI (match_operand:small_int_modes 2 "rx_restricted_mem_operand" "Q"))))
    (clobber (reg:CC CC_REG))]
-  ""
+  "(optimize < 3 || optimize_size)"
   "<memex_commutative:op>\t%<extend_types:letter>2, %0"
   [(set_attr "timings" "33")
    (set_attr "length"  "5")] ;; This length is corrected in rx_adjust_insn_length
        (memex_noncomm:SI (match_operand:SI                               1 "register_operand" "0")
                           (extend_types:SI (match_operand:small_int_modes 2 "rx_restricted_mem_operand" "Q"))))
    (clobber (reg:CC CC_REG))]
-  ""
+  "(optimize < 3 || optimize_size)"
   "<memex_noncomm:op>\t%<extend_types:letter>2, %0"
   [(set_attr "timings" "33")
    (set_attr "length"  "5")] ;; This length is corrected in rx_adjust_insn_length
   [(set (match_operand:SI                                              0 "register_operand" "=r")
        (memex_nocc:SI (match_operand:SI                               1 "register_operand" "%0")
                       (extend_types:SI (match_operand:small_int_modes 2 "rx_restricted_mem_operand" "Q"))))]
-  ""
+  "(optimize < 3 || optimize_size)"
   "<memex_nocc:op>\t%<extend_types:letter>2, %0"
   [(set_attr "timings" "33")
    (set_attr "length"  "5")] ;; This length is corrected in rx_adjust_insn_length
    (set (reg:CC CC_REG)
        (compare:CC (match_operand:SI                   2 "register_operand")
                    (match_dup 0)))]
-  "peep2_regno_dead_p (2, REGNO (operands[0]))"
+  "peep2_regno_dead_p (2, REGNO (operands[0])) && (optimize < 3 || optimize_size)"
   [(set (reg:CC CC_REG)
        (compare:CC (match_dup 2)
                    (extend_types:SI (match_dup 1))))]
   [(set (reg:CC CC_REG)
        (compare:CC (match_operand:SI                               0 "register_operand" "=r")
                    (extend_types:SI (match_operand:small_int_modes 1 "rx_restricted_mem_operand" "Q"))))]
-  ""
+  "(optimize < 3 || optimize_size)"
   "cmp\t%<extend_types:letter>1, %0"
   [(set_attr "timings" "33")
    (set_attr "length"  "5")] ;; This length is corrected in rx_adjust_insn_length