m32r.md: Use match_test rather than eq/ne symbol_ref throughout file.
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 27 Sep 2011 23:04:14 +0000 (23:04 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Sep 2011 23:04:14 +0000 (23:04 +0000)
gcc/
* config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
throughout file.

From-SVN: r179297

gcc/ChangeLog
gcc/config/m32r/m32r.md

index 2eb763107c242df0dbb8a80f94f2b4568055614d..25f5ca823edc13e71096490b3c24b5ce35a06014 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0719357350ee1d12bdeaaecf6812487d278fd569..cce8f1ccb747306091fb401a3962070502455bbd 100644 (file)
@@ -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")))
 
 }"
   [(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
 }"
   [(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