Commit 68ed2b9c by Richard Sandiford Committed by Richard Sandiford

sh.md: Use match_test rather than eq/ne symbol_ref throughout file.

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

From-SVN: r178868
parent d7f99b2c
2011-09-14 Richard Sandiford <rdsandiford@googlemail.com> 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
* config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
throughout file.
2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
* config/s390/s390.md: Use match_test rather than eq/ne symbol_ref * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
throughout file. throughout file.
...@@ -346,11 +346,11 @@ ...@@ -346,11 +346,11 @@
;; ??? This looks ugly because genattrtab won't allow if_then_else or cond ;; ??? This looks ugly because genattrtab won't allow if_then_else or cond
;; inside an le. ;; inside an le.
(define_attr "short_cbranch_p" "no,yes" (define_attr "short_cbranch_p" "no,yes"
(cond [(ne (symbol_ref "mdep_reorg_phase <= SH_FIXUP_PCLOAD") (const_int 0)) (cond [(match_test "mdep_reorg_phase <= SH_FIXUP_PCLOAD")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 252)) (const_int 506)) (leu (plus (minus (match_dup 0) (pc)) (const_int 252)) (const_int 506))
(const_string "yes") (const_string "yes")
(ne (symbol_ref "NEXT_INSN (PREV_INSN (insn)) != insn") (const_int 0)) (match_test "NEXT_INSN (PREV_INSN (insn)) != insn")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 252)) (const_int 508)) (leu (plus (minus (match_dup 0) (pc)) (const_int 252)) (const_int 508))
(const_string "yes") (const_string "yes")
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
(cond [(leu (plus (minus (match_dup 0) (pc)) (const_int 990)) (cond [(leu (plus (minus (match_dup 0) (pc)) (const_int 990))
(const_int 1988)) (const_int 1988))
(const_string "yes") (const_string "yes")
(ne (symbol_ref "mdep_reorg_phase <= SH_FIXUP_PCLOAD") (const_int 0)) (match_test "mdep_reorg_phase <= SH_FIXUP_PCLOAD")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 4092)) (leu (plus (minus (match_dup 0) (pc)) (const_int 4092))
(const_int 8186)) (const_int 8186))
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
(cond [(leu (plus (minus (match_dup 0) (pc)) (const_int 988)) (cond [(leu (plus (minus (match_dup 0) (pc)) (const_int 988))
(const_int 1986)) (const_int 1986))
(const_string "yes") (const_string "yes")
(ne (symbol_ref "mdep_reorg_phase <= SH_FIXUP_PCLOAD") (const_int 0)) (match_test "mdep_reorg_phase <= SH_FIXUP_PCLOAD")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 4090)) (leu (plus (minus (match_dup 0) (pc)) (const_int 4090))
(const_int 8184)) (const_int 8184))
...@@ -379,12 +379,12 @@ ...@@ -379,12 +379,12 @@
] (const_string "no"))) ] (const_string "no")))
(define_attr "braf_branch_p" "no,yes" (define_attr "braf_branch_p" "no,yes"
(cond [(ne (symbol_ref "! TARGET_SH2") (const_int 0)) (cond [(match_test "! TARGET_SH2")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 10330)) (leu (plus (minus (match_dup 0) (pc)) (const_int 10330))
(const_int 20660)) (const_int 20660))
(const_string "yes") (const_string "yes")
(ne (symbol_ref "mdep_reorg_phase <= SH_FIXUP_PCLOAD") (const_int 0)) (match_test "mdep_reorg_phase <= SH_FIXUP_PCLOAD")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 32764)) (leu (plus (minus (match_dup 0) (pc)) (const_int 32764))
(const_int 65530)) (const_int 65530))
...@@ -392,12 +392,12 @@ ...@@ -392,12 +392,12 @@
] (const_string "no"))) ] (const_string "no")))
(define_attr "braf_cbranch_p" "no,yes" (define_attr "braf_cbranch_p" "no,yes"
(cond [(ne (symbol_ref "! TARGET_SH2") (const_int 0)) (cond [(match_test "! TARGET_SH2")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 10328)) (leu (plus (minus (match_dup 0) (pc)) (const_int 10328))
(const_int 20658)) (const_int 20658))
(const_string "yes") (const_string "yes")
(ne (symbol_ref "mdep_reorg_phase <= SH_FIXUP_PCLOAD") (const_int 0)) (match_test "mdep_reorg_phase <= SH_FIXUP_PCLOAD")
(const_string "no") (const_string "no")
(leu (plus (minus (match_dup 0) (pc)) (const_int 32762)) (leu (plus (minus (match_dup 0) (pc)) (const_int 32762))
(const_int 65528)) (const_int 65528))
...@@ -426,39 +426,36 @@ ...@@ -426,39 +426,36 @@
;; ??? using pc is not computed transitively. ;; ??? using pc is not computed transitively.
(ne (match_dup 0) (match_dup 0)) (ne (match_dup 0) (match_dup 0))
(const_int 14) (const_int 14)
(ne (symbol_ref ("flag_pic")) (const_int 0)) (match_test "flag_pic")
(const_int 24) (const_int 24)
] (const_int 16)) ] (const_int 16))
(eq_attr "type" "jump") (eq_attr "type" "jump")
(cond [(eq_attr "med_branch_p" "yes") (cond [(eq_attr "med_branch_p" "yes")
(const_int 2) (const_int 2)
(and (ne (symbol_ref "prev_nonnote_insn (insn)") (and (match_test "prev_nonnote_insn (insn)")
(const_int 0)) (and (eq (symbol_ref "GET_CODE (prev_nonnote_insn (insn))") (symbol_ref "INSN"))
(and (eq (symbol_ref "GET_CODE (prev_nonnote_insn (insn))") (eq (symbol_ref "INSN_CODE (prev_nonnote_insn (insn))") (symbol_ref "code_for_indirect_jump_scratch"))))
(symbol_ref "INSN"))
(eq (symbol_ref "INSN_CODE (prev_nonnote_insn (insn))")
(symbol_ref "code_for_indirect_jump_scratch"))))
(cond [(eq_attr "braf_branch_p" "yes") (cond [(eq_attr "braf_branch_p" "yes")
(const_int 6) (const_int 6)
(eq (symbol_ref "flag_pic") (const_int 0)) (not (match_test "flag_pic"))
(const_int 10) (const_int 10)
(ne (symbol_ref "TARGET_SH2") (const_int 0)) (match_test "TARGET_SH2")
(const_int 10)] (const_int 18)) (const_int 10)] (const_int 18))
(eq_attr "braf_branch_p" "yes") (eq_attr "braf_branch_p" "yes")
(const_int 10) (const_int 10)
;; ??? using pc is not computed transitively. ;; ??? using pc is not computed transitively.
(ne (match_dup 0) (match_dup 0)) (ne (match_dup 0) (match_dup 0))
(const_int 12) (const_int 12)
(ne (symbol_ref ("flag_pic")) (const_int 0)) (match_test "flag_pic")
(const_int 22) (const_int 22)
] (const_int 14)) ] (const_int 14))
(eq_attr "type" "pt_media") (eq_attr "type" "pt_media")
(if_then_else (ne (symbol_ref "TARGET_SHMEDIA64") (const_int 0)) (if_then_else (match_test "TARGET_SHMEDIA64")
(const_int 20) (const_int 12)) (const_int 20) (const_int 12))
(and (eq_attr "type" "jump_media") (and (eq_attr "type" "jump_media")
(ne (symbol_ref "TARGET_SH5_CUT2_WORKAROUND") (const_int 0))) (match_test "TARGET_SH5_CUT2_WORKAROUND"))
(const_int 8) (const_int 8)
] (if_then_else (ne (symbol_ref "TARGET_SHMEDIA") (const_int 0)) ] (if_then_else (match_test "TARGET_SHMEDIA")
(const_int 4) (const_int 4)
(const_int 2)))) (const_int 2))))
...@@ -476,15 +473,13 @@ ...@@ -476,15 +473,13 @@
(define_attr "needs_delay_slot" "yes,no" (const_string "no")) (define_attr "needs_delay_slot" "yes,no" (const_string "no"))
(define_attr "banked" "yes,no" (define_attr "banked" "yes,no"
(cond [(eq (symbol_ref "sh_loads_bankedreg_p (insn)") (cond [(match_test "sh_loads_bankedreg_p (insn)")
(const_int 1))
(const_string "yes")] (const_string "yes")]
(const_string "no"))) (const_string "no")))
;; ??? This should be (nil) instead of (const_int 0) ;; ??? This should be (nil) instead of (const_int 0)
(define_attr "hit_stack" "yes,no" (define_attr "hit_stack" "yes,no"
(cond [(eq (symbol_ref "find_regno_note (insn, REG_INC, SP_REG)") (cond [(not (match_test "find_regno_note (insn, REG_INC, SP_REG)"))
(const_int 0))
(const_string "no")] (const_string "no")]
(const_string "yes"))) (const_string "yes")))
...@@ -559,7 +554,7 @@ ...@@ -559,7 +554,7 @@
(eq_attr "type" "!pload,prset")) (eq_attr "type" "!pload,prset"))
(and (eq_attr "interrupt_function" "yes") (and (eq_attr "interrupt_function" "yes")
(ior (ior
(eq (symbol_ref "TARGET_SH3") (const_int 0)) (not (match_test "TARGET_SH3"))
(eq_attr "hit_stack" "no") (eq_attr "hit_stack" "no")
(eq_attr "banked" "no"))))) (nil) (nil)]) (eq_attr "banked" "no"))))) (nil) (nil)])
...@@ -580,7 +575,7 @@ ...@@ -580,7 +575,7 @@
(define_delay (define_delay
(and (eq_attr "type" "cbranch") (and (eq_attr "type" "cbranch")
(ne (symbol_ref "TARGET_SH2") (const_int 0))) (match_test "TARGET_SH2"))
;; SH2e has a hardware bug that pretty much prohibits the use of ;; SH2e has a hardware bug that pretty much prohibits the use of
;; annuled delay slots. ;; annuled delay slots.
[(eq_attr "cond_delay_slot" "yes") (and (eq_attr "cond_delay_slot" "yes") [(eq_attr "cond_delay_slot" "yes") (and (eq_attr "cond_delay_slot" "yes")
...@@ -3478,7 +3473,7 @@ label: ...@@ -3478,7 +3473,7 @@ label:
"TARGET_SH1 && ! sh_dynamicalize_shift_p (operands[2])" "TARGET_SH1 && ! sh_dynamicalize_shift_p (operands[2])"
"#" "#"
[(set (attr "length") [(set (attr "length")
(cond [(eq (symbol_ref "shift_insns_rtx (insn)") (const_int 1)) (cond [(match_test "shift_insns_rtx (insn)")
(const_string "2") (const_string "2")
(eq (symbol_ref "shift_insns_rtx (insn)") (const_int 2)) (eq (symbol_ref "shift_insns_rtx (insn)") (const_int 2))
(const_string "4") (const_string "4")
...@@ -3544,7 +3539,7 @@ label: ...@@ -3544,7 +3539,7 @@ label:
"TARGET_SH1" "TARGET_SH1"
"#" "#"
[(set (attr "length") [(set (attr "length")
(cond [(eq (symbol_ref "shift_insns_rtx (insn)") (const_int 1)) (cond [(match_test "shift_insns_rtx (insn)")
(const_string "2") (const_string "2")
(eq (symbol_ref "shift_insns_rtx (insn)") (const_int 2)) (eq (symbol_ref "shift_insns_rtx (insn)") (const_int 2))
(const_string "4")] (const_string "4")]
...@@ -3780,7 +3775,7 @@ label: ...@@ -3780,7 +3775,7 @@ label:
"TARGET_SH1 && ! sh_dynamicalize_shift_p (operands[2])" "TARGET_SH1 && ! sh_dynamicalize_shift_p (operands[2])"
"#" "#"
[(set (attr "length") [(set (attr "length")
(cond [(eq (symbol_ref "shift_insns_rtx (insn)") (const_int 1)) (cond [(match_test "shift_insns_rtx (insn)")
(const_string "2") (const_string "2")
(eq (symbol_ref "shift_insns_rtx (insn)") (const_int 2)) (eq (symbol_ref "shift_insns_rtx (insn)") (const_int 2))
(const_string "4") (const_string "4")
...@@ -4201,7 +4196,7 @@ label: ...@@ -4201,7 +4196,7 @@ label:
"TARGET_SH1 && (unsigned)shl_sext_kind (operands[2], operands[3], 0) - 1 < 5" "TARGET_SH1 && (unsigned)shl_sext_kind (operands[2], operands[3], 0) - 1 < 5"
"#" "#"
[(set (attr "length") [(set (attr "length")
(cond [(eq (symbol_ref "shl_sext_length (insn)") (const_int 1)) (cond [(match_test "shl_sext_length (insn)")
(const_string "2") (const_string "2")
(eq (symbol_ref "shl_sext_length (insn)") (const_int 2)) (eq (symbol_ref "shl_sext_length (insn)") (const_int 2))
(const_string "4") (const_string "4")
...@@ -4377,7 +4372,7 @@ label: ...@@ -4377,7 +4372,7 @@ label:
ld%M1.uw %m1, %0" ld%M1.uw %m1, %0"
[(set_attr "type" "*,load_media") [(set_attr "type" "*,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4413,7 +4408,7 @@ label: ...@@ -4413,7 +4408,7 @@ label:
ld%M1.ub %m1, %0" ld%M1.ub %m1, %0"
[(set_attr "type" "arith_media,load_media") [(set_attr "type" "arith_media,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4443,7 +4438,7 @@ label: ...@@ -4443,7 +4438,7 @@ label:
ld%M1.uw %m1, %0" ld%M1.uw %m1, %0"
[(set_attr "type" "arith_media,load_media") [(set_attr "type" "arith_media,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4490,7 +4485,7 @@ label: ...@@ -4490,7 +4485,7 @@ label:
ld%M1.ub %m1, %0" ld%M1.ub %m1, %0"
[(set_attr "type" "arith_media,load_media") [(set_attr "type" "arith_media,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4519,7 +4514,7 @@ label: ...@@ -4519,7 +4514,7 @@ label:
fmov.sl %1, %0" fmov.sl %1, %0"
[(set_attr "type" "arith_media,load_media,fpconv_media") [(set_attr "type" "arith_media,load_media,fpconv_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "extend")))]) (const_string "extend")))])
...@@ -4532,7 +4527,7 @@ label: ...@@ -4532,7 +4527,7 @@ label:
ld%M1.w %m1, %0" ld%M1.w %m1, %0"
[(set_attr "type" "*,load_media") [(set_attr "type" "*,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4557,7 +4552,7 @@ label: ...@@ -4557,7 +4552,7 @@ label:
ld%M1.b %m1, %0" ld%M1.b %m1, %0"
[(set_attr "type" "*,load_media") [(set_attr "type" "*,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4597,7 +4592,7 @@ label: ...@@ -4597,7 +4592,7 @@ label:
ld%M1.w %m1, %0" ld%M1.w %m1, %0"
[(set_attr "type" "arith_media,load_media") [(set_attr "type" "arith_media,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4634,7 +4629,7 @@ label: ...@@ -4634,7 +4629,7 @@ label:
(set_attr_alternative "length" (set_attr_alternative "length"
[(const_int 2) [(const_int 2)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2))])]) (const_int 4) (const_int 2))])])
(define_insn "*extendqisi2_media" (define_insn "*extendqisi2_media"
...@@ -4646,7 +4641,7 @@ label: ...@@ -4646,7 +4641,7 @@ label:
ld%M1.b %m1, %0" ld%M1.b %m1, %0"
[(set_attr "type" "arith_media,load_media") [(set_attr "type" "arith_media,load_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -4677,7 +4672,7 @@ label: ...@@ -4677,7 +4672,7 @@ label:
(set_attr_alternative "length" (set_attr_alternative "length"
[(const_int 2) [(const_int 2)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2))])]) (const_int 4) (const_int 2))])])
/* It would seem useful to combine the truncXi patterns into the movXi /* It would seem useful to combine the truncXi patterns into the movXi
...@@ -4696,7 +4691,7 @@ label: ...@@ -4696,7 +4691,7 @@ label:
fmov.s %T1, %0" fmov.s %T1, %0"
[(set_attr "type" "arith_media,store_media,fstore_media,fload_media,fpconv_media,fmove_media") [(set_attr "type" "arith_media,store_media,fstore_media,fload_media,fpconv_media,fmove_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "extend")))]) (const_string "extend")))])
...@@ -4710,7 +4705,7 @@ label: ...@@ -4710,7 +4705,7 @@ label:
[(set_attr "type" "arith_media,store_media") [(set_attr "type" "arith_media,store_media")
(set_attr "length" "8,4") (set_attr "length" "8,4")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "extend")))]) (const_string "extend")))])
...@@ -4726,7 +4721,7 @@ label: ...@@ -4726,7 +4721,7 @@ label:
st%M0.b %m0, %1" st%M0.b %m0, %1"
[(set_attr "type" "arith_media,store") [(set_attr "type" "arith_media,store")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "extend")))]) (const_string "extend")))])
;; ------------------------------------------------------------------------- ;; -------------------------------------------------------------------------
...@@ -4937,13 +4932,13 @@ label: ...@@ -4937,13 +4932,13 @@ label:
(const_int 4) (const_int 4)
(const_int 2) (const_int 2)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(const_int 2) (const_int 2)
(const_int 2) (const_int 2)
(const_int 2) (const_int 2)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(const_int 2) (const_int 2)
(const_int 2) (const_int 2)
...@@ -5021,7 +5016,7 @@ label: ...@@ -5021,7 +5016,7 @@ label:
[(set_attr "type" "arith_media,arith_media,*,load_media,store_media,fload_media,fstore_media,fload_media,fpconv_media,fmove_media,ptabs_media,gettr_media,pt_media") [(set_attr "type" "arith_media,arith_media,*,load_media,store_media,fload_media,fstore_media,fload_media,fpconv_media,fmove_media,ptabs_media,gettr_media,pt_media")
(set_attr "length" "4,4,8,4,4,4,4,4,4,4,4,4,12") (set_attr "length" "4,4,8,4,4,4,4,4,4,4,4,4,12")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -5046,7 +5041,7 @@ label: ...@@ -5046,7 +5041,7 @@ label:
[(set_attr "type" "arith_media,arith_media,*,load_media,store_media,ptabs_media,gettr_media,pt_media") [(set_attr "type" "arith_media,arith_media,*,load_media,store_media,ptabs_media,gettr_media,pt_media")
(set_attr "length" "4,4,8,4,4,4,4,12") (set_attr "length" "4,4,8,4,4,4,4,12")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -5241,10 +5236,10 @@ label: ...@@ -5241,10 +5236,10 @@ label:
[(const_int 2) [(const_int 2)
(const_int 2) (const_int 2)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(const_int 2) (const_int 2)
(const_int 2) (const_int 2)
...@@ -5263,7 +5258,7 @@ label: ...@@ -5263,7 +5258,7 @@ label:
st%M0.b %m0, %N1" st%M0.b %m0, %N1"
[(set_attr "type" "arith_media,arith_media,load_media,store_media") [(set_attr "type" "arith_media,arith_media,load_media,store_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -5325,7 +5320,7 @@ label: ...@@ -5325,7 +5320,7 @@ label:
st%M0.w %m0, %N1" st%M0.w %m0, %N1"
[(set_attr "type" "arith_media,arith_media,*,load_media,store_media") [(set_attr "type" "arith_media,arith_media,*,load_media,store_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -5831,10 +5826,10 @@ label: ...@@ -5831,10 +5826,10 @@ label:
;; We can't use 4-byte push/pop on SHcompact, so we have to ;; We can't use 4-byte push/pop on SHcompact, so we have to
;; increment or decrement r15 explicitly. ;; increment or decrement r15 explicitly.
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SHCOMPACT") (const_int 0)) (match_test "TARGET_SHCOMPACT")
(const_int 10) (const_int 8)) (const_int 10) (const_int 8))
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SHCOMPACT") (const_int 0)) (match_test "TARGET_SHCOMPACT")
(const_int 10) (const_int 8))]) (const_int 10) (const_int 8))])
(set_attr "type" "fmove,move,pcfload,fload,fstore,pcload,load,store,load,fload") (set_attr "type" "fmove,move,pcfload,fload,fstore,pcload,load,store,load,fload")
(set_attr "late_fp_use" "*,*,*,*,yes,*,*,*,*,*") (set_attr "late_fp_use" "*,*,*,*,yes,*,*,*,*,*")
...@@ -6514,7 +6509,7 @@ label: ...@@ -6514,7 +6509,7 @@ label:
st%M0.l %m0, %N1" st%M0.l %m0, %N1"
[(set_attr "type" "fmove_media,fload_media,fpconv_media,arith_media,*,fload_media,fstore_media,load_media,store_media") [(set_attr "type" "fmove_media,fload_media,fpconv_media,arith_media,*,fload_media,fstore_media,load_media,store_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -6531,7 +6526,7 @@ label: ...@@ -6531,7 +6526,7 @@ label:
st%M0.l %m0, %N1" st%M0.l %m0, %N1"
[(set_attr "type" "arith_media,*,load_media,store_media") [(set_attr "type" "arith_media,*,load_media,store_media")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
...@@ -6623,17 +6618,17 @@ label: ...@@ -6623,17 +6618,17 @@ label:
(const_int 2) (const_int 2)
(const_int 4) (const_int 4)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(const_int 2) (const_int 2)
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(if_then_else (if_then_else
(ne (symbol_ref "TARGET_SH2A") (const_int 0)) (match_test "TARGET_SH2A")
(const_int 4) (const_int 2)) (const_int 4) (const_int 2))
(const_int 2) (const_int 2)
(const_int 2) (const_int 2)
...@@ -11613,7 +11608,7 @@ mov.l\\t1f,r0\\n\\ ...@@ -11613,7 +11608,7 @@ mov.l\\t1f,r0\\n\\
[(set_attr "type" "arith_media,arith_media,*,load_media,store_media") [(set_attr "type" "arith_media,arith_media,*,load_media,store_media")
(set_attr "length" "4,4,16,4,4") (set_attr "length" "4,4,16,4,4")
(set (attr "highpart") (set (attr "highpart")
(cond [(ne (symbol_ref "sh_contains_memref_p (insn)") (const_int 0)) (cond [(match_test "sh_contains_memref_p (insn)")
(const_string "user")] (const_string "user")]
(const_string "ignore")))]) (const_string "ignore")))])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment