arm.md: Use match_test rather than eq/ne symbol_ref throughout file.
[gcc.git] / gcc / config / arm / arm.md
index cd7cb06f45f9a9423a499ded7da2109de70bb1ad..0732ba17e9081cdcf7c273bac0ad0c38d70e5234 100644 (file)
         (const_string "yes")
 
         (and (eq_attr "arch" "a")
-             (ne (symbol_ref "TARGET_ARM") (const_int 0)))
+             (match_test "TARGET_ARM"))
         (const_string "yes")
 
         (and (eq_attr "arch" "t")
-             (ne (symbol_ref "TARGET_THUMB") (const_int 0)))
+             (match_test "TARGET_THUMB"))
         (const_string "yes")
 
         (and (eq_attr "arch" "t1")
-             (ne (symbol_ref "TARGET_THUMB1") (const_int 0)))
+             (match_test "TARGET_THUMB1"))
         (const_string "yes")
 
         (and (eq_attr "arch" "t2")
-             (ne (symbol_ref "TARGET_THUMB2") (const_int 0)))
+             (match_test "TARGET_THUMB2"))
         (const_string "yes")
 
         (and (eq_attr "arch" "32")
-             (ne (symbol_ref "TARGET_32BIT") (const_int 0)))
+             (match_test "TARGET_32BIT"))
         (const_string "yes")
 
         (and (eq_attr "arch" "v6")
-             (ne (symbol_ref "(TARGET_32BIT && arm_arch6)") (const_int 0)))
+             (match_test "TARGET_32BIT && arm_arch6"))
         (const_string "yes")
 
         (and (eq_attr "arch" "nov6")
-             (ne (symbol_ref "(TARGET_32BIT && !arm_arch6)") (const_int 0)))
+             (match_test "TARGET_32BIT && !arm_arch6"))
         (const_string "yes")
 
         (and (eq_attr "arch" "onlya8")
    (set_attr "type" "branch")
    (set (attr "length")
        (if_then_else
-          (and (ne (symbol_ref "TARGET_THUMB2") (const_int 0))
+          (and (match_test "TARGET_THUMB2")
                (and (ge (minus (match_dup 0) (pc)) (const_int -250))
                     (le (minus (match_dup 0) (pc)) (const_int 256))))
           (const_int 2)
    (set_attr "type" "branch")
    (set (attr "length")
        (if_then_else
-          (and (ne (symbol_ref "TARGET_THUMB2") (const_int 0))
+          (and (match_test "TARGET_THUMB2")
                (and (ge (minus (match_dup 0) (pc)) (const_int -250))
                     (le (minus (match_dup 0) (pc)) (const_int 256))))
           (const_int 2)
   [(set_attr "predicable" "yes")
    (set (attr "length")
        (if_then_else
-          (and (ne (symbol_ref "TARGET_THUMB2") (const_int 0))
+          (and (match_test "TARGET_THUMB2")
                (and (ge (minus (match_dup 0) (pc)) (const_int -2044))
                     (le (minus (match_dup 0) (pc)) (const_int 2048))))
           (const_int 2)