OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Sep 2011 21:17:14 +0000 (21:17 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Sep 2011 21:17:14 +0000 (21:17 +0000)
* config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
throughout file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178867 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/s390/s390.md

index c3888e5..e22908a 100644 (file)
@@ -1,5 +1,10 @@
 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+
+2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
        throughout file.
        * config/rs6000/constraints.md: Likewise.
index c04e024..018f6b4 100644 (file)
         (const_int 1)
 
          (and (eq_attr "cpu_facility" "ieee")
-             (ne (symbol_ref "TARGET_CPU_IEEE_FLOAT") (const_int 0)))
+             (match_test "TARGET_CPU_IEEE_FLOAT"))
         (const_int 1)
 
         (and (eq_attr "cpu_facility" "zarch")
-             (ne (symbol_ref "TARGET_ZARCH") (const_int 0)))
+             (match_test "TARGET_ZARCH"))
         (const_int 1)
 
         (and (eq_attr "cpu_facility" "longdisp")
-             (ne (symbol_ref "TARGET_LONG_DISPLACEMENT") (const_int 0)))
+             (match_test "TARGET_LONG_DISPLACEMENT"))
         (const_int 1)
 
          (and (eq_attr "cpu_facility" "extimm")
-             (ne (symbol_ref "TARGET_EXTIMM") (const_int 0)))
+             (match_test "TARGET_EXTIMM"))
         (const_int 1)
 
          (and (eq_attr "cpu_facility" "dfp")
-             (ne (symbol_ref "TARGET_DFP") (const_int 0)))
+             (match_test "TARGET_DFP"))
         (const_int 1)
 
          (and (eq_attr "cpu_facility" "z10")
-              (ne (symbol_ref "TARGET_Z10") (const_int 0)))
+              (match_test "TARGET_Z10"))
         (const_int 1)
 
          (and (eq_attr "cpu_facility" "z196")
-              (ne (symbol_ref "TARGET_Z196") (const_int 0)))
+              (match_test "TARGET_Z196"))
         (const_int 1)]
        (const_int 0)))
 
   [(set_attr "op_type" "RI")
    (set_attr "type"    "branch")
    (set (attr "length")
-        (if_then_else (eq (symbol_ref "flag_pic") (const_int 0))
+        (if_then_else (not (match_test "flag_pic"))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
                         (const_int 4) (const_int 6))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
   [(set_attr "op_type" "RI")
    (set_attr "type"    "branch")
    (set (attr "length")
-        (if_then_else (eq (symbol_ref "flag_pic") (const_int 0))
+        (if_then_else (not (match_test "flag_pic"))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
                         (const_int 4) (const_int 6))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
    (set_attr "z10prop"  "z10_super_E1")
    (set_attr "type"  "branch")
    (set (attr "length")
-        (if_then_else (eq (symbol_ref "flag_pic") (const_int 0))
+        (if_then_else (not (match_test "flag_pic"))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
                         (const_int 4) (const_int 6))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
   [(set_attr "op_type" "RI")
    (set_attr "type"  "branch")
    (set (attr "length")
-        (if_then_else (eq (symbol_ref "flag_pic") (const_int 0))
+        (if_then_else (not (match_test "flag_pic"))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
                         (const_int 4) (const_int 6))
           (if_then_else (lt (abs (minus (pc) (match_dup 0))) (const_int 60000))
   gcc_unreachable ();
 }
   [(set (attr "type")
-        (if_then_else (ne (symbol_ref "TARGET_CPU_ZARCH") (const_int 0))
+        (if_then_else (match_test "TARGET_CPU_ZARCH")
                       (const_string "larl") (const_string "la")))])
 
 (define_insn "reload_base_31"