OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Sep 2011 17:21:50 +0000 (17:21 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Sep 2011 17:21:50 +0000 (17:21 +0000)
* config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
throughout file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178760 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/cris/cris.md

index 415c19f..4ae39c2 100644 (file)
@@ -1,5 +1,10 @@
 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+
+2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
        throughout file.
        * config/mips/sb1.md: Likewise.
index 8af8a06..592bbad 100644 (file)
 
 (define_delay (eq_attr "slottable" "has_call_slot")
   [(and (eq_attr "slottable" "yes")
-       (ior (eq (symbol_ref "RTX_FRAME_RELATED_P (insn)")
-                (const_int 0))
-            (eq (symbol_ref "flag_exceptions")
-                (const_int 0))))
+       (ior (not (match_test "RTX_FRAME_RELATED_P (insn)"))
+            (not (match_test "flag_exceptions"))))
    (nil) (nil)])
 
 ;; The insn in the return insn slot must not be the
 ;; naked RETURN in middle-end.
 (define_delay (eq_attr "slottable" "has_return_slot")
   [(and (eq_attr "slottable" "yes")
-       (eq (symbol_ref "dead_or_set_regno_p (insn, CRIS_SRP_REGNUM)")
-           (const_int 0)))
+       (not (match_test "dead_or_set_regno_p (insn, CRIS_SRP_REGNUM)")))
    (nil) (nil)])
 
 \f
   "TARGET_HAS_MUL_INSNS"
   "%!mul<su><mm> %2,%0"
   [(set (attr "slottable")
-       (if_then_else (ne (symbol_ref "TARGET_MUL_BUG") (const_int 0))
+       (if_then_else (match_test "TARGET_MUL_BUG")
                      (const_string "no")
                      (const_string "yes")))
    ;; For umuls.[bwd] it's just N unusable here, but let's be safe.
   "TARGET_HAS_MUL_INSNS"
   "%!muls.d %2,%0"
   [(set (attr "slottable")
-       (if_then_else (ne (symbol_ref "TARGET_MUL_BUG") (const_int 0))
+       (if_then_else (match_test "TARGET_MUL_BUG")
                      (const_string "no")
                      (const_string "yes")))
    ;; Just N unusable here, but let's be safe.
 }
   [(set (attr "slottable")
        (if_then_else
-        (ne (symbol_ref
-             "(cris_return_address_on_stack_for_return ())")
-            (const_int 0))
+        (match_test "cris_return_address_on_stack_for_return ()")
         (const_string "no")
         (const_string "has_return_slot")))])