As per the subject.  Tested by making sure that there were no new
warnings building h8300-elf, and that there were no changes in the
assembly output for the C and C++ testsuite.  OK to install?

Richard


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

Index: gcc/config/h8300/h8300.md
===================================================================
--- gcc/config/h8300/h8300.md   2011-09-13 18:43:40.000000000 +0100
+++ gcc/config/h8300/h8300.md   2011-09-13 18:49:19.000000000 +0100
@@ -171,9 +171,9 @@ (define_delay (and (eq_attr "delay_slot"
 
 (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")
@@ -2416,7 +2416,7 @@ (define_insn "jump"
 }"
   [(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")])

Reply via email to