Commit f18d1d16 by Richard Sandiford Committed by Richard Sandiford

m32r.md: Use match_test rather than eq/ne symbol_ref throughout file.

gcc/
	* config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

From-SVN: r179297
parent b4d58803
2011-09-28 Richard Sandiford <rdsandiford@googlemail.com> 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
* config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
throughout file.
2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
* config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
throughout file. throughout file.
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
;; The target CPU we're compiling for. ;; The target CPU we're compiling for.
(define_attr "cpu" "m32r,m32r2,m32rx" (define_attr "cpu" "m32r,m32r2,m32rx"
(cond [(ne (symbol_ref "TARGET_M32RX") (const_int 0)) (cond [(match_test "TARGET_M32RX")
(const_string "m32rx") (const_string "m32rx")
(ne (symbol_ref "TARGET_M32R2") (const_int 0)) (match_test "TARGET_M32R2")
(const_string "m32r2")] (const_string "m32r2")]
(const_string "m32r"))) (const_string "m32r")))
...@@ -2012,8 +2012,7 @@ ...@@ -2012,8 +2012,7 @@
}" }"
[(set_attr "type" "call") [(set_attr "type" "call")
(set (attr "length") (set (attr "length")
(if_then_else (eq (symbol_ref "call26_operand (operands[0], FUNCTION_MODE)") (if_then_else (not (match_test "call26_operand (operands[0], FUNCTION_MODE)"))
(const_int 0))
(const_int 12) ; 10 + 2 for nop filler (const_int 12) ; 10 + 2 for nop filler
; The return address must be on a 4 byte boundary so ; The return address must be on a 4 byte boundary so
; there's no point in using a value of 2 here. A 2 byte ; there's no point in using a value of 2 here. A 2 byte
...@@ -2072,8 +2071,7 @@ ...@@ -2072,8 +2071,7 @@
}" }"
[(set_attr "type" "call") [(set_attr "type" "call")
(set (attr "length") (set (attr "length")
(if_then_else (eq (symbol_ref "call26_operand (operands[1], FUNCTION_MODE)") (if_then_else (not (match_test "call26_operand (operands[1], FUNCTION_MODE)"))
(const_int 0))
(const_int 12) ; 10 + 2 for nop filler (const_int 12) ; 10 + 2 for nop filler
; The return address must be on a 4 byte boundary so ; The return address must be on a 4 byte boundary so
; there's no point in using a value of 2 here. A 2 byte ; there's no point in using a value of 2 here. A 2 byte
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment