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.
(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")))])