h8300.md: Use match_test rather than eq/ne symbol_ref throughout file.
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 13 Sep 2011 18:12:53 +0000 (18:12 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 13 Sep 2011 18:12:53 +0000 (18:12 +0000)
gcc/
* config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
throughout file.

From-SVN: r178822

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 33d7b04c1ec265cee4cad80a15aa1f10b04435de..1c326efa38a8c47544a91e7f32813c52a3296c9c 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+
 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
index fa1809dfa77dc66ea5bf573337303907af65c3d7..bf41e6669a65b84059e3f819f9b03f6c969704f7 100644 (file)
 
 (define_asm_attributes
   [(set (attr "length")
-       (cond [(ne (symbol_ref "TARGET_H8300")  (const_int 0)) (const_int 4)
-              (ne (symbol_ref "TARGET_H8300H") (const_int 0)) (const_int 10)
-              (ne (symbol_ref "TARGET_H8300S") (const_int 0)) (const_int 10)]
+       (cond [(match_test "TARGET_H8300") (const_int 4)
+              (match_test "TARGET_H8300H") (const_int 10)
+              (match_test "TARGET_H8300S") (const_int 10)]
              (const_int 14)))])
 
 (include "predicates.md")
 }"
   [(set_attr "type" "branch")
    (set (attr "delay_slot")
-       (if_then_else (ne (symbol_ref "TARGET_H8300SX") (const_int 0))
+       (if_then_else (match_test "TARGET_H8300SX")
                      (const_string "jump")
                      (const_string "none")))
    (set_attr "cc" "none")])