summaryrefslogtreecommitdiff
path: root/gcc/config/arm/marvell-f-iwmmxt.md
diff options
context:
space:
mode:
authorsofiane <sofiane@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-01 09:29:38 +0000
committersofiane <sofiane@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-01 09:29:38 +0000
commit7cb6c048e8de85ffce377c2a187369a6c38ba53d (patch)
tree5d37e35aa764be631bc5ce4d7b45e5a1382ce92a /gcc/config/arm/marvell-f-iwmmxt.md
parenteec0c3882397e125d704b4a9a91829b61b365305 (diff)
downloadgcc-7cb6c048e8de85ffce377c2a187369a6c38ba53d.tar.gz
* arm.md (attribute "wtype"): Delete. Move attribute values from here
to ... (attribute "type"): ... here, and prefix with "wmmx_". (attribute "core_cycles"): Update for attribute changes. * iwmmxt.md (tbcstv8qi): Update for attribute changes. (tbcstv4hi): Likewise. (tbcstv2si): Likewise. (iwmmxt_iordi3): Likewise. (iwmmxt_xordi3): Likewise. (iwmmxt_anddi3): Likewise. (iwmmxt_nanddi3): Likewise. (iwmmxt_arm_movdi): Likewise. (iwmmxt_movsi_insn): Likewise. (mov<mode>_internal): Likewise. (and<mode>3_iwmmxt): Likewise. (ior<mode>3_iwmmxt): Likewise. (xor<mode>3_iwmmxt): Likewise. (add<mode>3_iwmmxt): Likewise. (ssaddv8qi3): Likewise. (ssaddv4hi3): Likewise. (ssaddv2si3): Likewise. (usaddv8qi3): Likewise. (usaddv4hi3): Likewise. (usaddv2si3): Likewise. (sub<mode>3_iwmmxt): Likewise. (sssubv8qi3): Likewise. (sssubv4hi3): Likewise. (sssubv2si3): Likewise. (ussubv8qi3): Likewise. (ussubv4hi3): Likewise. (ussubv2si3): Likewise. (mulv4hi3_iwmmxt): Likewise. (smulv4hi3_highpart): Likewise. (umulv4hi3_highpart): Likewise. (iwmmxt_wmacs): Likewise. (iwmmxt_wmacsz): Likewise. (iwmmxt_wmacu): Likewise. (iwmmxt_wmacuz): Likewise. (iwmmxt_clrdi): Likewise. (iwmmxt_clrv8qi): Likewise. (iwmmxt_clr4hi): Likewise. (iwmmxt_clr2si): Likewise. (iwmmxt_uavgrndv8qi3): Likewise. (iwmmxt_uavgrndv4hi3): Likewise. (iwmmxt_uavgv8qi3): Likewise. (iwmmxt_uavgv4hi3): Likewise. (iwmmxt_tinsrb): Likewise. (iwmmxt_tinsrh): Likewise. (iwmmxt_tinsrw): Likewise. (iwmmxt_textrmub): Likewise. (iwmmxt_textrmsb): Likewise. (iwmmxt_textrmuh): Likewise. (iwmmxt_textrmsh): Likewise. (iwmmxt_textrmw): Likewise. (iwmxxt_wshufh): Likewise. (eqv8qi3): Likewise. (eqv4hi3): Likewise. (eqv2si3): Likewise. (gtuv8qi3): Likewise. (gtuv4hi3): Likewise. (gtuv2si3): Likewise. (gtv8qi3): Likewise. (gtv4hi3): Likewise. (gtv2si3): Likewise. (smax<mode>3_iwmmxt): Likewise. (umax<mode>3_iwmmxt): Likewise. (smin<mode>3_iwmmxt): Likewise. (umin<mode>3_iwmmxt): Likewise. (iwmmxt_wpackhss): Likewise. (iwmmxt_wpackwss): Likewise. (iwmmxt_wpackdss): Likewise. (iwmmxt_wpackhus): Likewise. (iwmmxt_wpackwus): Likewise. (iwmmxt_wpackdus): Likewise. (iwmmxt_wunpckihb): Likewise. (iwmmxt_wunpckihh): Likewise. (iwmmxt_wunpckihw): Likewise. (iwmmxt_wunpckilb): Likewise. (iwmmxt_wunpckilh): Likewise. (iwmmxt_wunpckilw): Likewise. (iwmmxt_wunpckehub): Likewise. (iwmmxt_wunpckehuh): Likewise. (iwmmxt_wunpckehuw): Likewise. (iwmmxt_wunpckehsb): Likewise. (iwmmxt_wunpckehsh): Likewise. (iwmmxt_wunpckehsw): Likewise. (iwmmxt_wunpckelub): Likewise. (iwmmxt_wunpckeluh): Likewise. (iwmmxt_wunpckeluw): Likewise. (iwmmxt_wunpckelsb): Likewise. (iwmmxt_wunpckelsh): Likewise. (iwmmxt_wunpckelsw): Likewise. (ror<mode>3): Likewise. (ashr<mode>3_iwmmxt): Likewise. (lshr<mode>3_iwmmxt): Likewise. (ashl<mode>3_iwmmxt): Likewise. (ror<mode>3_di): Likewise. (ashr<mode>3_di): Likewise. (lshr<mode>3_di): Likewise. (ashl<mode>3_di): Likewise. (iwmmxt_wmadds): Likewise. (iwmmxt_wmaddu): Likewise. (iwmmxt_tmia): Likewise. (iwmmxt_tmiaph): Likewise. (iwmmxt_tmiabb): Likewise. (iwmmxt_tmiatb): Likewise. (iwmmxt_tmiabt): Likewise. (iwmmxt_tmiatt): Likewise. (iwmmxt_tmovmskb): Likewise. (iwmmxt_tmovmskh): Likewise. (iwmmxt_tmovmskw): Likewise. (iwmmxt_waccb): Likewise. (iwmmxt_wacch): Likewise. (iwmmxt_waccw): Likewise. (iwmmxt_waligni): Likewise. (iwmmxt_walignr): Likewise. (iwmmxt_walignr0): Likewise. (iwmmxt_walignr1): Likewise. (iwmmxt_walignr2): Likewise. (iwmmxt_walignr3): Likewise. (iwmmxt_wsadb): Likewise. (iwmmxt_wsadh): Likewise. (iwmmxt_wsadbz): Likewise. (iwmmxt_wsadhz): Likewise. * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes. (iwmmxt_wabsdiffb): Likewise. (iwmmxt_wabsdiffh): Likewise. (iwmmxt_wabsdiffw): Likewise. (iwmmxt_waddsubhx): Likewise (iwmmxt_wsubaddhx): Likewise. (addc<mode>3): Likewise. (iwmmxt_avg4): Likewise. (iwmmxt_avg4r): Likewise. (iwmmxt_wmaddsx): Likewise. (iwmmxt_wmaddux): Likewise. (iwmmxt_wmaddsn): Likewise. (iwmmxt_wmaddun): Likewise. (iwmmxt_wmulwsm): Likewise. (iwmmxt_wmulwum): Likewise. (iwmmxt_wmulsmr): Likewise. (iwmmxt_wmulumr): Likewise. (iwmmxt_wmulwsmr): Likewise. (iwmmxt_wmulwumr): Likewise. (iwmmxt_wmulwl): Likewise. (iwmmxt_wqmulm): Likewise. (iwmmxt_wqmulwm): Likewise. (iwmmxt_wqmulmr): Likewise. (iwmmxt_wqmulwmr): Likewise. (iwmmxt_waddbhusm): Likewise. (iwmmxt_waddbhusl): Likewise. (iwmmxt_wqmiabb): Likewise. (iwmmxt_wqmiabt): Likewise. (iwmmxt_wqmiatb): Likewise. (iwmmxt_wqmiatt): Likewise. (iwmmxt_wqmiabbn): Likewise. (iwmmxt_wqmiabtn): Likewise. (iwmmxt_wqmiatbn): Likewise. (iwmmxt_wqmiattn): Likewise. (iwmmxt_wmiabb): Likewise. (iwmmxt_wmiabt): Likewise. (iwmmxt_wmiatb): Likewise. (iwmmxt_wmiatt): Likewise. (iwmmxt_wmiabbn): Likewise. (iwmmxt_wmiabtn): Likewise. (iwmmxt_wmiatbn): Likewise. (iwmmxt_wmiattn): Likewise. (iwmmxt_wmiawbb): Likewise. (iwmmxt_wmiawbt): Likewise. (iwmmxt_wmiawtb): Likewise. (iwmmxt_wmiawtt): Likewise. (iwmmxt_wmiawbbn): Likewise. (iwmmxt_wmiawbtn): Likewise. (iwmmxt_wmiawtbn): Likewise. (iwmmxt_wmiawttn): Likewise. (iwmmxt_wmerge): Likewise. (iwmmxt_tandc<mode>3): Likewise. (iwmmxt_torc<mode>3): Likewise. (iwmmxt_torvsc<mode>3): Likewise. (iwmmxt_textrc<mode>3): Likewise. * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes. (wmmxt_pack): Likewise. (wmmxt_mult_c1): Likewise. (wmmxt_mult_c2): Likewise. (wmmxt_alu_c1): Likewise. (wmmxt_alu_c2): Likewise. (wmmxt_alu_c3): Likewise. (wmmxt_transfer_c1): Likewise. (wmmxt_transfer_c2): Likewise. (wmmxt_transfer_c3): Likewise. (marvell_f_iwmmxt_wstr): Likewise. (marvell_f_iwmmxt_wldr): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200576 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/marvell-f-iwmmxt.md')
-rw-r--r--gcc/config/arm/marvell-f-iwmmxt.md34
1 files changed, 22 insertions, 12 deletions
diff --git a/gcc/config/arm/marvell-f-iwmmxt.md b/gcc/config/arm/marvell-f-iwmmxt.md
index 5781776b15f..395549fd434 100644
--- a/gcc/config/arm/marvell-f-iwmmxt.md
+++ b/gcc/config/arm/marvell-f-iwmmxt.md
@@ -63,52 +63,62 @@
;; An attribute appended to instructions for classification
(define_attr "wmmxt_shift" "yes,no"
- (if_then_else (eq_attr "wtype" "wror, wsll, wsra, wsrl")
+ (if_then_else (eq_attr "type" "wmmx_wror, wmmx_wsll, wmmx_wsra, wmmx_wsrl")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_pack" "yes,no"
- (if_then_else (eq_attr "wtype" "waligni, walignr, wmerge, wpack, wshufh, wunpckeh, wunpckih, wunpckel, wunpckil")
+ (if_then_else (eq_attr "type" "wmmx_waligni, wmmx_walignr, wmmx_wmerge,\
+ wmmx_wpack, wmmx_wshufh, wmmx_wunpckeh,\
+ wmmx_wunpckih, wmmx_wunpckel, wmmx_wunpckil")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_mult_c1" "yes,no"
- (if_then_else (eq_attr "wtype" "wmac, wmadd, wmiaxy, wmiawxy, wmulw, wqmiaxy, wqmulwm")
+ (if_then_else (eq_attr "type" "wmmx_wmac, wmmx_wmadd, wmmx_wmiaxy,\
+ wmmx_wmiawxy, wmmx_wmulw, wmmx_wqmiaxy,\
+ wmmx_wqmulwm")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_mult_c2" "yes,no"
- (if_then_else (eq_attr "wtype" "wmul, wqmulm")
+ (if_then_else (eq_attr "type" "wmmx_wmul, wmmx_wqmulm")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_alu_c1" "yes,no"
- (if_then_else (eq_attr "wtype" "wabs, wabsdiff, wand, wandn, wmov, wor, wxor")
+ (if_then_else (eq_attr "type" "wmmx_wabs, wmmx_wabsdiff, wmmx_wand,\
+ wmmx_wandn, wmmx_wmov, wmmx_wor, wmmx_wxor")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_alu_c2" "yes,no"
- (if_then_else (eq_attr "wtype" "wacc, wadd, waddsubhx, wavg2, wavg4, wcmpeq, wcmpgt, wmax, wmin, wsub, waddbhus, wsubaddhx")
+ (if_then_else (eq_attr "type" "wmmx_wacc, wmmx_wadd, wmmx_waddsubhx,\
+ wmmx_wavg2, wmmx_wavg4, wmmx_wcmpeq,\
+ wmmx_wcmpgt, wmmx_wmax, wmmx_wmin,\
+ wmmx_wsub, wmmx_waddbhus, wmmx_wsubaddhx")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_alu_c3" "yes,no"
- (if_then_else (eq_attr "wtype" "wsad")
+ (if_then_else (eq_attr "type" "wmmx_wsad")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_transfer_c1" "yes,no"
- (if_then_else (eq_attr "wtype" "tbcst, tinsr, tmcr, tmcrr")
+ (if_then_else (eq_attr "type" "wmmx_tbcst, wmmx_tinsr,\
+ wmmx_tmcr, wmmx_tmcrr")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_transfer_c2" "yes,no"
- (if_then_else (eq_attr "wtype" "textrm, tmovmsk, tmrc, tmrrc")
+ (if_then_else (eq_attr "type" "wmmx_textrm, wmmx_tmovmsk,\
+ wmmx_tmrc, wmmx_tmrrc")
(const_string "yes") (const_string "no"))
)
(define_attr "wmmxt_transfer_c3" "yes,no"
- (if_then_else (eq_attr "wtype" "tmia, tmiaph, tmiaxy")
+ (if_then_else (eq_attr "type" "wmmx_tmia, wmmx_tmiaph, wmmx_tmiaxy")
(const_string "yes") (const_string "no"))
)
@@ -169,11 +179,11 @@
(define_insn_reservation "marvell_f_iwmmxt_wstr" 0
(and (eq_attr "marvell_f_iwmmxt" "yes")
- (eq_attr "wtype" "wstr"))
+ (eq_attr "type" "wmmx_wstr"))
"mf_iwmmxt_pipeline")
;There is a forwarding path from MW stage
(define_insn_reservation "marvell_f_iwmmxt_wldr" 5
(and (eq_attr "marvell_f_iwmmxt" "yes")
- (eq_attr "wtype" "wldr"))
+ (eq_attr "type" "wmmx_wldr"))
"mf_iwmmxt_pipeline")