OSDN Git Service

* config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2012 01:41:36 +0000 (01:41 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2012 01:41:36 +0000 (01:41 +0000)
opaque cond in all call insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@194236 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/pa.md

index 1cab51a..24863d2 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
+       opaque cond in all call insns.
+
 2012-12-03  Eric Botcazou  <ebotcazou@adacore.com>
 
        * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
index 570245b..79a15d6 100644 (file)
   "* return pa_output_mul_insn (0, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_insn ""
   "* return pa_output_mul_insn (0, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_expand "muldi3"
    return pa_output_div_insn (operands, 0, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_insn ""
    return pa_output_div_insn (operands, 0, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_expand "udivsi3"
    return pa_output_div_insn (operands, 1, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_insn ""
    return pa_output_div_insn (operands, 1, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_expand "modsi3"
   return pa_output_mod_insn (0, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_insn ""
   return pa_output_mod_insn (0, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_expand "umodsi3"
   return pa_output_mod_insn (1, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 (define_insn ""
   return pa_output_mod_insn (1, insn);"
   [(set_attr "type" "milli")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_millicode_call (insn)")))])
 
 ;;- and instructions
@@ -7214,7 +7214,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 0)")))])
 
 (define_insn "call_symref_pic"
@@ -7293,7 +7293,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 0)")))])
 
 ;; This pattern is split if it is necessary to save and restore the
@@ -7380,7 +7380,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 0)")))])
 
 (define_insn "call_reg"
@@ -7396,7 +7396,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "dyncall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_indirect_call (insn)")))])
 
 ;; This pattern is split if it is necessary to save and restore the
@@ -7476,7 +7476,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "dyncall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_indirect_call (insn)")))])
 
 ;; This pattern is split if it is necessary to save and restore the
@@ -7562,7 +7562,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "dyncall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 12)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 12)]
              (symbol_ref "pa_attr_length_indirect_call (insn)")))])
 
 (define_expand "call_value"
@@ -7690,7 +7690,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 0)")))])
 
 (define_insn "call_val_symref_pic"
@@ -7775,7 +7775,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 0)")))])
 
 ;; This pattern is split if it is necessary to save and restore the
@@ -7868,7 +7868,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "call")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 0)")))])
 
 (define_insn "call_val_reg"
@@ -7885,7 +7885,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "dyncall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_indirect_call (insn)")))])
 
 ;; This pattern is split if it is necessary to save and restore the
@@ -7971,7 +7971,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "dyncall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_indirect_call (insn)")))])
 
 ;; This pattern is split if it is necessary to save and restore the
@@ -8063,7 +8063,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "dyncall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 12)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 12)]
              (symbol_ref "pa_attr_length_indirect_call (insn)")))])
 
 ;; Call subroutine returning any type.
@@ -8159,7 +8159,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "sibcall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 1)")))])
 
 (define_insn "sibcall_internal_symref_64bit"
@@ -8176,7 +8176,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "sibcall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 1)")))])
 
 (define_expand "sibcall_value"
@@ -8247,7 +8247,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "sibcall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 1)")))])
 
 (define_insn "sibcall_value_internal_symref_64bit"
@@ -8265,7 +8265,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "sibcall")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 8)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 8)]
              (symbol_ref "pa_attr_length_call (insn, 1)")))])
 
 (define_insn "nop"
@@ -9304,7 +9304,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
 }"
   [(set_attr "type" "sh_func_adrs")
    (set (attr "length")
-       (cond [(and (match_test "0") (eq (const_int 0) (pc))) (const_int 28)]
+       (cond [(and (const_int 0) (eq (const_int 0) (pc))) (const_int 28)]
              (plus (symbol_ref "pa_attr_length_millicode_call (insn)")
                    (const_int 20))))])