summaryrefslogtreecommitdiff
path: root/gcc/config/m32r
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r--gcc/config/m32r/m32r.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/config/m32r/m32r.md b/gcc/config/m32r/m32r.md
index 0719357350e..cce8f1ccb74 100644
--- a/gcc/config/m32r/m32r.md
+++ b/gcc/config/m32r/m32r.md
@@ -69,9 +69,9 @@
;; The target CPU we're compiling for.
(define_attr "cpu" "m32r,m32r2,m32rx"
- (cond [(ne (symbol_ref "TARGET_M32RX") (const_int 0))
+ (cond [(match_test "TARGET_M32RX")
(const_string "m32rx")
- (ne (symbol_ref "TARGET_M32R2") (const_int 0))
+ (match_test "TARGET_M32R2")
(const_string "m32r2")]
(const_string "m32r")))
@@ -2012,8 +2012,7 @@
}"
[(set_attr "type" "call")
(set (attr "length")
- (if_then_else (eq (symbol_ref "call26_operand (operands[0], FUNCTION_MODE)")
- (const_int 0))
+ (if_then_else (not (match_test "call26_operand (operands[0], FUNCTION_MODE)"))
(const_int 12) ; 10 + 2 for nop filler
; 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
@@ -2072,8 +2071,7 @@
}"
[(set_attr "type" "call")
(set (attr "length")
- (if_then_else (eq (symbol_ref "call26_operand (operands[1], FUNCTION_MODE)")
- (const_int 0))
+ (if_then_else (not (match_test "call26_operand (operands[1], FUNCTION_MODE)"))
(const_int 12) ; 10 + 2 for nop filler
; 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