annotate gcc/config/arm/iwmmxt.md @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 ;; Patterns for the Intel Wireless MMX technology architecture.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 ;; Copyright (C) 2003-2018 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 ;; Contributed by Red Hat.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 ;; This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 ;; GCC is free software; you can redistribute it and/or modify it under
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 ;; the terms of the GNU General Public License as published by the Free
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 ;; Software Foundation; either version 3, or (at your option) any later
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 ;; version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 ;; GCC is distributed in the hope that it will be useful, but WITHOUT
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 ;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 ;; License for more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 ;; You should have received a copy of the GNU General Public License
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 ;; along with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 ;; <http://www.gnu.org/licenses/>.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
111
kono
parents: 67
diff changeset
21 ;; Register numbers. Need to sync with FIRST_IWMMXT_GR_REGNUM in arm.h
kono
parents: 67
diff changeset
22 (define_constants
kono
parents: 67
diff changeset
23 [(WCGR0 96)
kono
parents: 67
diff changeset
24 (WCGR1 97)
kono
parents: 67
diff changeset
25 (WCGR2 98)
kono
parents: 67
diff changeset
26 (WCGR3 99)
kono
parents: 67
diff changeset
27 ]
kono
parents: 67
diff changeset
28 )
kono
parents: 67
diff changeset
29
kono
parents: 67
diff changeset
30 (define_insn "tbcstv8qi"
kono
parents: 67
diff changeset
31 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
32 (vec_duplicate:V8QI (match_operand:QI 1 "s_register_operand" "r")))]
kono
parents: 67
diff changeset
33 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
34 "tbcstb%?\\t%0, %1"
kono
parents: 67
diff changeset
35 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
36 (set_attr "type" "wmmx_tbcst")]
kono
parents: 67
diff changeset
37 )
kono
parents: 67
diff changeset
38
kono
parents: 67
diff changeset
39 (define_insn "tbcstv4hi"
kono
parents: 67
diff changeset
40 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
41 (vec_duplicate:V4HI (match_operand:HI 1 "s_register_operand" "r")))]
kono
parents: 67
diff changeset
42 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
43 "tbcsth%?\\t%0, %1"
kono
parents: 67
diff changeset
44 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
45 (set_attr "type" "wmmx_tbcst")]
kono
parents: 67
diff changeset
46 )
kono
parents: 67
diff changeset
47
kono
parents: 67
diff changeset
48 (define_insn "tbcstv2si"
kono
parents: 67
diff changeset
49 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
50 (vec_duplicate:V2SI (match_operand:SI 1 "s_register_operand" "r")))]
kono
parents: 67
diff changeset
51 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
52 "tbcstw%?\\t%0, %1"
kono
parents: 67
diff changeset
53 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
54 (set_attr "type" "wmmx_tbcst")]
kono
parents: 67
diff changeset
55 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 (define_insn "iwmmxt_iordi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 [(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 (ior:DI (match_operand:DI 1 "register_operand" "%y,0,r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 (match_operand:DI 2 "register_operand" "y,r,r")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 "@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 wor%?\\t%0, %1, %2
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 #"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 [(set_attr "predicable" "yes")
111
kono
parents: 67
diff changeset
67 (set_attr "length" "4,8,8")
kono
parents: 67
diff changeset
68 (set_attr "type" "wmmx_wor,*,*")]
kono
parents: 67
diff changeset
69 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 (define_insn "iwmmxt_xordi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 [(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 (xor:DI (match_operand:DI 1 "register_operand" "%y,0,r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 (match_operand:DI 2 "register_operand" "y,r,r")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 "@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 wxor%?\\t%0, %1, %2
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 #"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 [(set_attr "predicable" "yes")
111
kono
parents: 67
diff changeset
81 (set_attr "length" "4,8,8")
kono
parents: 67
diff changeset
82 (set_attr "type" "wmmx_wxor,*,*")]
kono
parents: 67
diff changeset
83 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 (define_insn "iwmmxt_anddi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 [(set (match_operand:DI 0 "register_operand" "=y,?&r,?&r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 (and:DI (match_operand:DI 1 "register_operand" "%y,0,r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 (match_operand:DI 2 "register_operand" "y,r,r")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 "@
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 wand%?\\t%0, %1, %2
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 #
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 #"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 [(set_attr "predicable" "yes")
111
kono
parents: 67
diff changeset
95 (set_attr "length" "4,8,8")
kono
parents: 67
diff changeset
96 (set_attr "type" "wmmx_wand,*,*")]
kono
parents: 67
diff changeset
97 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 (define_insn "iwmmxt_nanddi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 (and:DI (match_operand:DI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 (not:DI (match_operand:DI 2 "register_operand" "y"))))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 "wandn%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
105 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
106 (set_attr "type" "wmmx_wandn")]
kono
parents: 67
diff changeset
107 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 (define_insn "*iwmmxt_arm_movdi"
111
kono
parents: 67
diff changeset
110 [(set (match_operand:DI 0 "nonimmediate_di_operand" "=r, r, r, r, m,y,y,r, y,Uy,*w, r,*w,*w, *Uv")
kono
parents: 67
diff changeset
111 (match_operand:DI 1 "di_operand" "rDa,Db,Dc,mi,r,y,r,y,Uy,y, r,*w,*w,*Uvi,*w"))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 "TARGET_REALLY_IWMMXT
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 && ( register_operand (operands[0], DImode)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 || register_operand (operands[1], DImode))"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 "*
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 switch (which_alternative)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 case 0:
111
kono
parents: 67
diff changeset
119 case 1:
kono
parents: 67
diff changeset
120 case 2:
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 return \"#\";
111
kono
parents: 67
diff changeset
122 case 3: case 4:
kono
parents: 67
diff changeset
123 return output_move_double (operands, true, NULL);
kono
parents: 67
diff changeset
124 case 5:
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 return \"wmov%?\\t%0,%1\";
111
kono
parents: 67
diff changeset
126 case 6:
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 return \"tmcrr%?\\t%0,%Q1,%R1\";
111
kono
parents: 67
diff changeset
128 case 7:
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129 return \"tmrrc%?\\t%Q0,%R0,%1\";
111
kono
parents: 67
diff changeset
130 case 8:
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 return \"wldrd%?\\t%0,%1\";
111
kono
parents: 67
diff changeset
132 case 9:
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 return \"wstrd%?\\t%1,%0\";
111
kono
parents: 67
diff changeset
134 case 10:
kono
parents: 67
diff changeset
135 return \"fmdrr%?\\t%P0, %Q1, %R1\\t%@ int\";
kono
parents: 67
diff changeset
136 case 11:
kono
parents: 67
diff changeset
137 return \"fmrrd%?\\t%Q0, %R0, %P1\\t%@ int\";
kono
parents: 67
diff changeset
138 case 12:
kono
parents: 67
diff changeset
139 if (TARGET_VFP_SINGLE)
kono
parents: 67
diff changeset
140 return \"fcpys%?\\t%0, %1\\t%@ int\;fcpys%?\\t%p0, %p1\\t%@ int\";
kono
parents: 67
diff changeset
141 else
kono
parents: 67
diff changeset
142 return \"fcpyd%?\\t%P0, %P1\\t%@ int\";
kono
parents: 67
diff changeset
143 case 13: case 14:
kono
parents: 67
diff changeset
144 return output_move_vfp (operands);
kono
parents: 67
diff changeset
145 default:
kono
parents: 67
diff changeset
146 gcc_unreachable ();
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
147 }
111
kono
parents: 67
diff changeset
148 "
kono
parents: 67
diff changeset
149 [(set (attr "length") (cond [(eq_attr "alternative" "0,3,4") (const_int 8)
kono
parents: 67
diff changeset
150 (eq_attr "alternative" "1") (const_int 12)
kono
parents: 67
diff changeset
151 (eq_attr "alternative" "2") (const_int 16)
kono
parents: 67
diff changeset
152 (eq_attr "alternative" "12")
kono
parents: 67
diff changeset
153 (if_then_else
kono
parents: 67
diff changeset
154 (eq (symbol_ref "TARGET_VFP_SINGLE") (const_int 1))
kono
parents: 67
diff changeset
155 (const_int 8)
kono
parents: 67
diff changeset
156 (const_int 4))]
kono
parents: 67
diff changeset
157 (const_int 4)))
kono
parents: 67
diff changeset
158 (set_attr "type" "*,*,*,load_8,store_8,*,*,*,*,*,f_mcrr,f_mrrc,\
kono
parents: 67
diff changeset
159 ffarithd,f_loadd,f_stored")
kono
parents: 67
diff changeset
160 (set_attr "arm_pool_range" "*,*,*,1020,*,*,*,*,*,*,*,*,*,1020,*")
kono
parents: 67
diff changeset
161 (set_attr "arm_neg_pool_range" "*,*,*,1008,*,*,*,*,*,*,*,*,*,1008,*")]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 (define_insn "*iwmmxt_movsi_insn"
111
kono
parents: 67
diff changeset
165 [(set (match_operand:SI 0 "nonimmediate_operand" "=rk,r,r,r,rk, m,z,r,?z,?Uy,*t, r,*t,*t ,*Uv")
kono
parents: 67
diff changeset
166 (match_operand:SI 1 "general_operand" " rk,I,K,j,mi,rk,r,z,Uy, z, r,*t,*t,*Uvi, *t"))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 "TARGET_REALLY_IWMMXT
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 && ( register_operand (operands[0], SImode)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
169 || register_operand (operands[1], SImode))"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
170 "*
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
171 switch (which_alternative)
111
kono
parents: 67
diff changeset
172 {
kono
parents: 67
diff changeset
173 case 0: return \"mov\\t%0, %1\";
kono
parents: 67
diff changeset
174 case 1: return \"mov\\t%0, %1\";
kono
parents: 67
diff changeset
175 case 2: return \"mvn\\t%0, #%B1\";
kono
parents: 67
diff changeset
176 case 3: return \"movw\\t%0, %1\";
kono
parents: 67
diff changeset
177 case 4: return \"ldr\\t%0, %1\";
kono
parents: 67
diff changeset
178 case 5: return \"str\\t%1, %0\";
kono
parents: 67
diff changeset
179 case 6: return \"tmcr\\t%0, %1\";
kono
parents: 67
diff changeset
180 case 7: return \"tmrc\\t%0, %1\";
kono
parents: 67
diff changeset
181 case 8: return arm_output_load_gr (operands);
kono
parents: 67
diff changeset
182 case 9: return \"wstrw\\t%1, %0\";
kono
parents: 67
diff changeset
183 case 10:return \"fmsr\\t%0, %1\";
kono
parents: 67
diff changeset
184 case 11:return \"fmrs\\t%0, %1\";
kono
parents: 67
diff changeset
185 case 12:return \"fcpys\\t%0, %1\\t%@ int\";
kono
parents: 67
diff changeset
186 case 13: case 14:
kono
parents: 67
diff changeset
187 return output_move_vfp (operands);
kono
parents: 67
diff changeset
188 default:
kono
parents: 67
diff changeset
189 gcc_unreachable ();
kono
parents: 67
diff changeset
190 }"
kono
parents: 67
diff changeset
191 [(set_attr "type" "*,*,*,*,load_4,store_4,*,*,*,*,f_mcr,f_mrc,\
kono
parents: 67
diff changeset
192 fmov,f_loads,f_stores")
kono
parents: 67
diff changeset
193 (set_attr "length" "*,*,*,*,*, *,*,*, 16, *,*,*,*,*,*")
kono
parents: 67
diff changeset
194 (set_attr "pool_range" "*,*,*,*,4096, *,*,*,1024, *,*,*,*,1020,*")
kono
parents: 67
diff changeset
195 (set_attr "neg_pool_range" "*,*,*,*,4084, *,*,*, *, 1012,*,*,*,1008,*")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 ;; Note - the "predicable" attribute is not allowed to have alternatives.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 ;; Since the wSTRw wCx instruction is not predicable, we cannot support
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 ;; predicating any of the alternatives in this template. Instead,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 ;; we do the predication ourselves, in cond_iwmmxt_movsi_insn.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 (set_attr "predicable" "no")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 ;; Also - we have to pretend that these insns clobber the condition code
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
202 ;; bits as otherwise arm_final_prescan_insn() will try to conditionalize
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 ;; them.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
204 (set_attr "conds" "clob")]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
205 )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
206
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 ;; Because iwmmxt_movsi_insn is not predicable, we provide the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 ;; cond_exec version explicitly, with appropriate constraints.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
209
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 (define_insn "*cond_iwmmxt_movsi_insn"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 [(cond_exec
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 (match_operator 2 "arm_comparison_operator"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
213 [(match_operand 3 "cc_register" "")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 (const_int 0)])
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 (set (match_operand:SI 0 "nonimmediate_operand" "=r,r,r, m,z,r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 (match_operand:SI 1 "general_operand" "rI,K,mi,r,r,z")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217 "TARGET_REALLY_IWMMXT
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 && ( register_operand (operands[0], SImode)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 || register_operand (operands[1], SImode))"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
220 "*
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 switch (which_alternative)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 case 0: return \"mov%?\\t%0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
224 case 1: return \"mvn%?\\t%0, #%B1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 case 2: return \"ldr%?\\t%0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
226 case 3: return \"str%?\\t%1, %0\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
227 case 4: return \"tmcr%?\\t%0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
228 default: return \"tmrc%?\\t%0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
229 }"
111
kono
parents: 67
diff changeset
230 [(set_attr "type" "*,*,load_4,store_4,*,*")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 (set_attr "pool_range" "*,*,4096, *,*,*")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
232 (set_attr "neg_pool_range" "*,*,4084, *,*,*")]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 )
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
235 (define_insn "mov<mode>_internal"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
236 [(set (match_operand:VMMX 0 "nonimmediate_operand" "=y,m,y,?r,?y,?r,?r,?m")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 (match_operand:VMMX 1 "general_operand" "y,y,mi,y,r,r,mi,r"))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
239 "*
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240 switch (which_alternative)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 case 0: return \"wmov%?\\t%0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
243 case 1: return \"wstrd%?\\t%1, %0\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
244 case 2: return \"wldrd%?\\t%0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 case 3: return \"tmrrc%?\\t%Q0, %R0, %1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
246 case 4: return \"tmcrr%?\\t%0, %Q1, %R1\";
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
247 case 5: return \"#\";
111
kono
parents: 67
diff changeset
248 default: return output_move_double (operands, true, NULL);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
249 }"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
250 [(set_attr "predicable" "yes")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
251 (set_attr "length" "4, 4, 4,4,4,8, 8,8")
111
kono
parents: 67
diff changeset
252 (set_attr "type" "wmmx_wmov,wmmx_wstr,wmmx_wldr,wmmx_tmrrc,wmmx_tmcrr,*,load_4,store_4")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 (set_attr "pool_range" "*, *, 256,*,*,*, 256,*")
111
kono
parents: 67
diff changeset
254 (set_attr "neg_pool_range" "*, *, 244,*,*,*, 244,*")]
kono
parents: 67
diff changeset
255 )
kono
parents: 67
diff changeset
256
kono
parents: 67
diff changeset
257 (define_expand "iwmmxt_setwcgr0"
kono
parents: 67
diff changeset
258 [(set (reg:SI WCGR0)
kono
parents: 67
diff changeset
259 (match_operand:SI 0 "register_operand" ""))]
kono
parents: 67
diff changeset
260 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
261 {}
kono
parents: 67
diff changeset
262 )
kono
parents: 67
diff changeset
263
kono
parents: 67
diff changeset
264 (define_expand "iwmmxt_setwcgr1"
kono
parents: 67
diff changeset
265 [(set (reg:SI WCGR1)
kono
parents: 67
diff changeset
266 (match_operand:SI 0 "register_operand" ""))]
kono
parents: 67
diff changeset
267 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
268 {}
kono
parents: 67
diff changeset
269 )
kono
parents: 67
diff changeset
270
kono
parents: 67
diff changeset
271 (define_expand "iwmmxt_setwcgr2"
kono
parents: 67
diff changeset
272 [(set (reg:SI WCGR2)
kono
parents: 67
diff changeset
273 (match_operand:SI 0 "register_operand" ""))]
kono
parents: 67
diff changeset
274 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
275 {}
kono
parents: 67
diff changeset
276 )
kono
parents: 67
diff changeset
277
kono
parents: 67
diff changeset
278 (define_expand "iwmmxt_setwcgr3"
kono
parents: 67
diff changeset
279 [(set (reg:SI WCGR3)
kono
parents: 67
diff changeset
280 (match_operand:SI 0 "register_operand" ""))]
kono
parents: 67
diff changeset
281 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
282 {}
kono
parents: 67
diff changeset
283 )
kono
parents: 67
diff changeset
284
kono
parents: 67
diff changeset
285 (define_expand "iwmmxt_getwcgr0"
kono
parents: 67
diff changeset
286 [(set (match_operand:SI 0 "register_operand" "")
kono
parents: 67
diff changeset
287 (reg:SI WCGR0))]
kono
parents: 67
diff changeset
288 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
289 {}
kono
parents: 67
diff changeset
290 )
kono
parents: 67
diff changeset
291
kono
parents: 67
diff changeset
292 (define_expand "iwmmxt_getwcgr1"
kono
parents: 67
diff changeset
293 [(set (match_operand:SI 0 "register_operand" "")
kono
parents: 67
diff changeset
294 (reg:SI WCGR1))]
kono
parents: 67
diff changeset
295 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
296 {}
kono
parents: 67
diff changeset
297 )
kono
parents: 67
diff changeset
298
kono
parents: 67
diff changeset
299 (define_expand "iwmmxt_getwcgr2"
kono
parents: 67
diff changeset
300 [(set (match_operand:SI 0 "register_operand" "")
kono
parents: 67
diff changeset
301 (reg:SI WCGR2))]
kono
parents: 67
diff changeset
302 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
303 {}
kono
parents: 67
diff changeset
304 )
kono
parents: 67
diff changeset
305
kono
parents: 67
diff changeset
306 (define_expand "iwmmxt_getwcgr3"
kono
parents: 67
diff changeset
307 [(set (match_operand:SI 0 "register_operand" "")
kono
parents: 67
diff changeset
308 (reg:SI WCGR3))]
kono
parents: 67
diff changeset
309 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
310 {}
kono
parents: 67
diff changeset
311 )
kono
parents: 67
diff changeset
312
kono
parents: 67
diff changeset
313 (define_insn "*and<mode>3_iwmmxt"
kono
parents: 67
diff changeset
314 [(set (match_operand:VMMX 0 "register_operand" "=y")
kono
parents: 67
diff changeset
315 (and:VMMX (match_operand:VMMX 1 "register_operand" "y")
kono
parents: 67
diff changeset
316 (match_operand:VMMX 2 "register_operand" "y")))]
kono
parents: 67
diff changeset
317 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
318 "wand\\t%0, %1, %2"
kono
parents: 67
diff changeset
319 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
320 (set_attr "type" "wmmx_wand")]
kono
parents: 67
diff changeset
321 )
kono
parents: 67
diff changeset
322
kono
parents: 67
diff changeset
323 (define_insn "*ior<mode>3_iwmmxt"
kono
parents: 67
diff changeset
324 [(set (match_operand:VMMX 0 "register_operand" "=y")
kono
parents: 67
diff changeset
325 (ior:VMMX (match_operand:VMMX 1 "register_operand" "y")
kono
parents: 67
diff changeset
326 (match_operand:VMMX 2 "register_operand" "y")))]
kono
parents: 67
diff changeset
327 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
328 "wor\\t%0, %1, %2"
kono
parents: 67
diff changeset
329 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
330 (set_attr "type" "wmmx_wor")]
kono
parents: 67
diff changeset
331 )
kono
parents: 67
diff changeset
332
kono
parents: 67
diff changeset
333 (define_insn "*xor<mode>3_iwmmxt"
kono
parents: 67
diff changeset
334 [(set (match_operand:VMMX 0 "register_operand" "=y")
kono
parents: 67
diff changeset
335 (xor:VMMX (match_operand:VMMX 1 "register_operand" "y")
kono
parents: 67
diff changeset
336 (match_operand:VMMX 2 "register_operand" "y")))]
kono
parents: 67
diff changeset
337 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
338 "wxor\\t%0, %1, %2"
kono
parents: 67
diff changeset
339 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
340 (set_attr "type" "wmmx_wxor")]
kono
parents: 67
diff changeset
341 )
kono
parents: 67
diff changeset
342
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
343
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
344 ;; Vector add/subtract
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
345
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
346 (define_insn "*add<mode>3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
347 [(set (match_operand:VMMX 0 "register_operand" "=y")
111
kono
parents: 67
diff changeset
348 (plus:VMMX (match_operand:VMMX 1 "register_operand" "y")
kono
parents: 67
diff changeset
349 (match_operand:VMMX 2 "register_operand" "y")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
350 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
351 "wadd<MMX_char>%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
352 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
353 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
354 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
355
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
356 (define_insn "ssaddv8qi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
357 [(set (match_operand:V8QI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
358 (ss_plus:V8QI (match_operand:V8QI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
359 (match_operand:V8QI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
360 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
361 "waddbss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
362 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
363 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
364 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
365
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
366 (define_insn "ssaddv4hi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
367 [(set (match_operand:V4HI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
368 (ss_plus:V4HI (match_operand:V4HI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
369 (match_operand:V4HI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
370 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
371 "waddhss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
372 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
373 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
374 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
375
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
376 (define_insn "ssaddv2si3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
377 [(set (match_operand:V2SI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
378 (ss_plus:V2SI (match_operand:V2SI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
379 (match_operand:V2SI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
380 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
381 "waddwss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
382 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
383 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
384 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
385
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
386 (define_insn "usaddv8qi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 [(set (match_operand:V8QI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
388 (us_plus:V8QI (match_operand:V8QI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
389 (match_operand:V8QI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
390 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
391 "waddbus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
392 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
393 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
394 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
395
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
396 (define_insn "usaddv4hi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
397 [(set (match_operand:V4HI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
398 (us_plus:V4HI (match_operand:V4HI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
399 (match_operand:V4HI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
400 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
401 "waddhus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
402 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
403 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
404 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
405
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
406 (define_insn "usaddv2si3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
407 [(set (match_operand:V2SI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
408 (us_plus:V2SI (match_operand:V2SI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
409 (match_operand:V2SI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
410 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
411 "waddwus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
412 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
413 (set_attr "type" "wmmx_wadd")]
kono
parents: 67
diff changeset
414 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
415
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
416 (define_insn "*sub<mode>3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
417 [(set (match_operand:VMMX 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
418 (minus:VMMX (match_operand:VMMX 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
419 (match_operand:VMMX 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
420 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
421 "wsub<MMX_char>%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
422 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
423 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
424 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
425
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
426 (define_insn "sssubv8qi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
427 [(set (match_operand:V8QI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
428 (ss_minus:V8QI (match_operand:V8QI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
429 (match_operand:V8QI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
430 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
431 "wsubbss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
432 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
433 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
434 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
435
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
436 (define_insn "sssubv4hi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
437 [(set (match_operand:V4HI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
438 (ss_minus:V4HI (match_operand:V4HI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
439 (match_operand:V4HI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
440 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
441 "wsubhss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
442 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
443 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
444 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
445
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
446 (define_insn "sssubv2si3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
447 [(set (match_operand:V2SI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
448 (ss_minus:V2SI (match_operand:V2SI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
449 (match_operand:V2SI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
450 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
451 "wsubwss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
452 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
453 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
454 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
455
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
456 (define_insn "ussubv8qi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
457 [(set (match_operand:V8QI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
458 (us_minus:V8QI (match_operand:V8QI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
459 (match_operand:V8QI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
460 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
461 "wsubbus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
462 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
463 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
464 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
465
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
466 (define_insn "ussubv4hi3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
467 [(set (match_operand:V4HI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
468 (us_minus:V4HI (match_operand:V4HI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
469 (match_operand:V4HI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
470 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
471 "wsubhus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
472 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
473 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
474 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
475
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
476 (define_insn "ussubv2si3"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
477 [(set (match_operand:V2SI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
478 (us_minus:V2SI (match_operand:V2SI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
479 (match_operand:V2SI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
480 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
481 "wsubwus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
482 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
483 (set_attr "type" "wmmx_wsub")]
kono
parents: 67
diff changeset
484 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
485
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
486 (define_insn "*mulv4hi3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
487 [(set (match_operand:V4HI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
488 (mult:V4HI (match_operand:V4HI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
489 (match_operand:V4HI 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
490 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
491 "wmulul%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
492 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
493 (set_attr "type" "wmmx_wmul")]
kono
parents: 67
diff changeset
494 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
495
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
496 (define_insn "smulv4hi3_highpart"
111
kono
parents: 67
diff changeset
497 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
498 (truncate:V4HI
kono
parents: 67
diff changeset
499 (lshiftrt:V4SI
kono
parents: 67
diff changeset
500 (mult:V4SI (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
501 (sign_extend:V4SI (match_operand:V4HI 2 "register_operand" "y")))
kono
parents: 67
diff changeset
502 (const_int 16))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
503 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
504 "wmulsm%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
505 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
506 (set_attr "type" "wmmx_wmul")]
kono
parents: 67
diff changeset
507 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
508
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
509 (define_insn "umulv4hi3_highpart"
111
kono
parents: 67
diff changeset
510 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
511 (truncate:V4HI
kono
parents: 67
diff changeset
512 (lshiftrt:V4SI
kono
parents: 67
diff changeset
513 (mult:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
514 (zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y")))
kono
parents: 67
diff changeset
515 (const_int 16))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
516 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
517 "wmulum%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
518 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
519 (set_attr "type" "wmmx_wmul")]
kono
parents: 67
diff changeset
520 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
521
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
522 (define_insn "iwmmxt_wmacs"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
523 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
524 (unspec:DI [(match_operand:DI 1 "register_operand" "0")
111
kono
parents: 67
diff changeset
525 (match_operand:V4HI 2 "register_operand" "y")
kono
parents: 67
diff changeset
526 (match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WMACS))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
527 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
528 "wmacs%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
529 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
530 (set_attr "type" "wmmx_wmac")]
kono
parents: 67
diff changeset
531 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
532
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
533 (define_insn "iwmmxt_wmacsz"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
534 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
535 (unspec:DI [(match_operand:V4HI 1 "register_operand" "y")
111
kono
parents: 67
diff changeset
536 (match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMACSZ))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
537 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
538 "wmacsz%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
539 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
540 (set_attr "type" "wmmx_wmac")]
kono
parents: 67
diff changeset
541 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
542
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
543 (define_insn "iwmmxt_wmacu"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
544 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
545 (unspec:DI [(match_operand:DI 1 "register_operand" "0")
111
kono
parents: 67
diff changeset
546 (match_operand:V4HI 2 "register_operand" "y")
kono
parents: 67
diff changeset
547 (match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WMACU))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
548 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
549 "wmacu%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
550 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
551 (set_attr "type" "wmmx_wmac")]
kono
parents: 67
diff changeset
552 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
553
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
554 (define_insn "iwmmxt_wmacuz"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
555 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
556 (unspec:DI [(match_operand:V4HI 1 "register_operand" "y")
111
kono
parents: 67
diff changeset
557 (match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WMACUZ))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
558 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
559 "wmacuz%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
560 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
561 (set_attr "type" "wmmx_wmac")]
kono
parents: 67
diff changeset
562 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
563
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
564 ;; Same as xordi3, but don't show input operands so that we don't think
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
565 ;; they are live.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
566 (define_insn "iwmmxt_clrdi"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
567 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
568 (unspec:DI [(const_int 0)] UNSPEC_CLRDI))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
569 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
570 "wxor%?\\t%0, %0, %0"
111
kono
parents: 67
diff changeset
571 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
572 (set_attr "type" "wmmx_wxor")]
kono
parents: 67
diff changeset
573 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
574
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
575 ;; Seems like cse likes to generate these, so we have to support them.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
576
111
kono
parents: 67
diff changeset
577 (define_insn "iwmmxt_clrv8qi"
kono
parents: 67
diff changeset
578 [(set (match_operand:V8QI 0 "s_register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
579 (const_vector:V8QI [(const_int 0) (const_int 0)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
580 (const_int 0) (const_int 0)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
581 (const_int 0) (const_int 0)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
582 (const_int 0) (const_int 0)]))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
583 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
584 "wxor%?\\t%0, %0, %0"
111
kono
parents: 67
diff changeset
585 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
586 (set_attr "type" "wmmx_wxor")]
kono
parents: 67
diff changeset
587 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
588
111
kono
parents: 67
diff changeset
589 (define_insn "iwmmxt_clrv4hi"
kono
parents: 67
diff changeset
590 [(set (match_operand:V4HI 0 "s_register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
591 (const_vector:V4HI [(const_int 0) (const_int 0)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
592 (const_int 0) (const_int 0)]))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
593 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
594 "wxor%?\\t%0, %0, %0"
111
kono
parents: 67
diff changeset
595 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
596 (set_attr "type" "wmmx_wxor")]
kono
parents: 67
diff changeset
597 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
598
111
kono
parents: 67
diff changeset
599 (define_insn "iwmmxt_clrv2si"
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
600 [(set (match_operand:V2SI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
601 (const_vector:V2SI [(const_int 0) (const_int 0)]))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
602 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
603 "wxor%?\\t%0, %0, %0"
111
kono
parents: 67
diff changeset
604 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
605 (set_attr "type" "wmmx_wxor")]
kono
parents: 67
diff changeset
606 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
607
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
608 ;; Unsigned averages/sum of absolute differences
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
609
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
610 (define_insn "iwmmxt_uavgrndv8qi3"
111
kono
parents: 67
diff changeset
611 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
612 (truncate:V8QI
kono
parents: 67
diff changeset
613 (lshiftrt:V8HI
kono
parents: 67
diff changeset
614 (plus:V8HI
kono
parents: 67
diff changeset
615 (plus:V8HI (zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
616 (zero_extend:V8HI (match_operand:V8QI 2 "register_operand" "y")))
kono
parents: 67
diff changeset
617 (const_vector:V8HI [(const_int 1)
kono
parents: 67
diff changeset
618 (const_int 1)
kono
parents: 67
diff changeset
619 (const_int 1)
kono
parents: 67
diff changeset
620 (const_int 1)
kono
parents: 67
diff changeset
621 (const_int 1)
kono
parents: 67
diff changeset
622 (const_int 1)
kono
parents: 67
diff changeset
623 (const_int 1)
kono
parents: 67
diff changeset
624 (const_int 1)]))
kono
parents: 67
diff changeset
625 (const_int 1))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
626 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
627 "wavg2br%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
628 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
629 (set_attr "type" "wmmx_wavg2")]
kono
parents: 67
diff changeset
630 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
631
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
632 (define_insn "iwmmxt_uavgrndv4hi3"
111
kono
parents: 67
diff changeset
633 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
634 (truncate:V4HI
kono
parents: 67
diff changeset
635 (lshiftrt:V4SI
kono
parents: 67
diff changeset
636 (plus:V4SI
kono
parents: 67
diff changeset
637 (plus:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
638 (zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y")))
kono
parents: 67
diff changeset
639 (const_vector:V4SI [(const_int 1)
kono
parents: 67
diff changeset
640 (const_int 1)
kono
parents: 67
diff changeset
641 (const_int 1)
kono
parents: 67
diff changeset
642 (const_int 1)]))
kono
parents: 67
diff changeset
643 (const_int 1))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
644 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
645 "wavg2hr%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
646 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
647 (set_attr "type" "wmmx_wavg2")]
kono
parents: 67
diff changeset
648 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
649
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
650 (define_insn "iwmmxt_uavgv8qi3"
111
kono
parents: 67
diff changeset
651 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
652 (truncate:V8QI
kono
parents: 67
diff changeset
653 (lshiftrt:V8HI
kono
parents: 67
diff changeset
654 (plus:V8HI (zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
655 (zero_extend:V8HI (match_operand:V8QI 2 "register_operand" "y")))
kono
parents: 67
diff changeset
656 (const_int 1))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
657 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
658 "wavg2b%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
659 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
660 (set_attr "type" "wmmx_wavg2")]
kono
parents: 67
diff changeset
661 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
662
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
663 (define_insn "iwmmxt_uavgv4hi3"
111
kono
parents: 67
diff changeset
664 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
665 (truncate:V4HI
kono
parents: 67
diff changeset
666 (lshiftrt:V4SI
kono
parents: 67
diff changeset
667 (plus:V4SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
668 (zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y")))
kono
parents: 67
diff changeset
669 (const_int 1))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
670 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
671 "wavg2h%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
672 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
673 (set_attr "type" "wmmx_wavg2")]
kono
parents: 67
diff changeset
674 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
675
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
676 ;; Insert/extract/shuffle
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
677
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
678 (define_insn "iwmmxt_tinsrb"
111
kono
parents: 67
diff changeset
679 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
680 (vec_merge:V8QI
kono
parents: 67
diff changeset
681 (vec_duplicate:V8QI
kono
parents: 67
diff changeset
682 (truncate:QI (match_operand:SI 2 "nonimmediate_operand" "r")))
kono
parents: 67
diff changeset
683 (match_operand:V8QI 1 "register_operand" "0")
kono
parents: 67
diff changeset
684 (match_operand:SI 3 "immediate_operand" "i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
685 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
686 "*
kono
parents: 67
diff changeset
687 {
kono
parents: 67
diff changeset
688 return arm_output_iwmmxt_tinsr (operands);
kono
parents: 67
diff changeset
689 }
kono
parents: 67
diff changeset
690 "
kono
parents: 67
diff changeset
691 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
692 (set_attr "type" "wmmx_tinsr")]
kono
parents: 67
diff changeset
693 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
694
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
695 (define_insn "iwmmxt_tinsrh"
111
kono
parents: 67
diff changeset
696 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
697 (vec_merge:V4HI
kono
parents: 67
diff changeset
698 (vec_duplicate:V4HI
kono
parents: 67
diff changeset
699 (truncate:HI (match_operand:SI 2 "nonimmediate_operand" "r")))
kono
parents: 67
diff changeset
700 (match_operand:V4HI 1 "register_operand" "0")
kono
parents: 67
diff changeset
701 (match_operand:SI 3 "immediate_operand" "i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
702 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
703 "*
kono
parents: 67
diff changeset
704 {
kono
parents: 67
diff changeset
705 return arm_output_iwmmxt_tinsr (operands);
kono
parents: 67
diff changeset
706 }
kono
parents: 67
diff changeset
707 "
kono
parents: 67
diff changeset
708 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
709 (set_attr "type" "wmmx_tinsr")]
kono
parents: 67
diff changeset
710 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
711
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
712 (define_insn "iwmmxt_tinsrw"
111
kono
parents: 67
diff changeset
713 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
714 (vec_merge:V2SI
kono
parents: 67
diff changeset
715 (vec_duplicate:V2SI
kono
parents: 67
diff changeset
716 (match_operand:SI 2 "nonimmediate_operand" "r"))
kono
parents: 67
diff changeset
717 (match_operand:V2SI 1 "register_operand" "0")
kono
parents: 67
diff changeset
718 (match_operand:SI 3 "immediate_operand" "i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
719 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
720 "*
kono
parents: 67
diff changeset
721 {
kono
parents: 67
diff changeset
722 return arm_output_iwmmxt_tinsr (operands);
kono
parents: 67
diff changeset
723 }
kono
parents: 67
diff changeset
724 "
kono
parents: 67
diff changeset
725 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
726 (set_attr "type" "wmmx_tinsr")]
kono
parents: 67
diff changeset
727 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
728
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
729 (define_insn "iwmmxt_textrmub"
111
kono
parents: 67
diff changeset
730 [(set (match_operand:SI 0 "register_operand" "=r")
kono
parents: 67
diff changeset
731 (zero_extend:SI (vec_select:QI (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
732 (parallel
kono
parents: 67
diff changeset
733 [(match_operand:SI 2 "immediate_operand" "i")]))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
734 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
735 "textrmub%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
736 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
737 (set_attr "type" "wmmx_textrm")]
kono
parents: 67
diff changeset
738 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
739
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
740 (define_insn "iwmmxt_textrmsb"
111
kono
parents: 67
diff changeset
741 [(set (match_operand:SI 0 "register_operand" "=r")
kono
parents: 67
diff changeset
742 (sign_extend:SI (vec_select:QI (match_operand:V8QI 1 "register_operand" "y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
743 (parallel
111
kono
parents: 67
diff changeset
744 [(match_operand:SI 2 "immediate_operand" "i")]))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
745 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
746 "textrmsb%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
747 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
748 (set_attr "type" "wmmx_textrm")]
kono
parents: 67
diff changeset
749 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
750
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
751 (define_insn "iwmmxt_textrmuh"
111
kono
parents: 67
diff changeset
752 [(set (match_operand:SI 0 "register_operand" "=r")
kono
parents: 67
diff changeset
753 (zero_extend:SI (vec_select:HI (match_operand:V4HI 1 "register_operand" "y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
754 (parallel
111
kono
parents: 67
diff changeset
755 [(match_operand:SI 2 "immediate_operand" "i")]))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
756 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
757 "textrmuh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
758 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
759 (set_attr "type" "wmmx_textrm")]
kono
parents: 67
diff changeset
760 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
761
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
762 (define_insn "iwmmxt_textrmsh"
111
kono
parents: 67
diff changeset
763 [(set (match_operand:SI 0 "register_operand" "=r")
kono
parents: 67
diff changeset
764 (sign_extend:SI (vec_select:HI (match_operand:V4HI 1 "register_operand" "y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
765 (parallel
111
kono
parents: 67
diff changeset
766 [(match_operand:SI 2 "immediate_operand" "i")]))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
767 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
768 "textrmsh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
769 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
770 (set_attr "type" "wmmx_textrm")]
kono
parents: 67
diff changeset
771 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
772
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
773 ;; There are signed/unsigned variants of this instruction, but they are
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
774 ;; pointless.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
775 (define_insn "iwmmxt_textrmw"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
776 [(set (match_operand:SI 0 "register_operand" "=r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
777 (vec_select:SI (match_operand:V2SI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
778 (parallel [(match_operand:SI 2 "immediate_operand" "i")])))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
779 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
780 "textrmsw%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
781 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
782 (set_attr "type" "wmmx_textrm")]
kono
parents: 67
diff changeset
783 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
784
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
785 (define_insn "iwmmxt_wshufh"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
786 [(set (match_operand:V4HI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
787 (unspec:V4HI [(match_operand:V4HI 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
788 (match_operand:SI 2 "immediate_operand" "i")] UNSPEC_WSHUFH))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
789 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
790 "wshufh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
791 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
792 (set_attr "type" "wmmx_wshufh")]
kono
parents: 67
diff changeset
793 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
794
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
795 ;; Mask-generating comparisons
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
796 ;;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
797 ;; Note - you cannot use patterns like these here:
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
798 ;;
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
799 ;; (set (match:<vector>) (<comparator>:<vector> (match:<vector>) (match:<vector>)))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
800 ;;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
801 ;; Because GCC will assume that the truth value (1 or 0) is installed
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
802 ;; into the entire destination vector, (with the '1' going into the least
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
803 ;; significant element of the vector). This is not how these instructions
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
804 ;; behave.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
805
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
806 (define_insn "eqv8qi3"
111
kono
parents: 67
diff changeset
807 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
808 (unspec_volatile:V8QI [(match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
809 (match_operand:V8QI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
810 VUNSPEC_WCMP_EQ))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
811 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
812 "wcmpeqb%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
813 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
814 (set_attr "type" "wmmx_wcmpeq")]
kono
parents: 67
diff changeset
815 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
816
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
817 (define_insn "eqv4hi3"
111
kono
parents: 67
diff changeset
818 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
819 (unspec_volatile:V4HI [(match_operand:V4HI 1 "register_operand" "y")
kono
parents: 67
diff changeset
820 (match_operand:V4HI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
821 VUNSPEC_WCMP_EQ))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
822 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
823 "wcmpeqh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
824 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
825 (set_attr "type" "wmmx_wcmpeq")]
kono
parents: 67
diff changeset
826 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
827
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
828 (define_insn "eqv2si3"
111
kono
parents: 67
diff changeset
829 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
830 (unspec_volatile:V2SI
kono
parents: 67
diff changeset
831 [(match_operand:V2SI 1 "register_operand" "y")
kono
parents: 67
diff changeset
832 (match_operand:V2SI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
833 VUNSPEC_WCMP_EQ))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
834 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
835 "wcmpeqw%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
836 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
837 (set_attr "type" "wmmx_wcmpeq")]
kono
parents: 67
diff changeset
838 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
839
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
840 (define_insn "gtuv8qi3"
111
kono
parents: 67
diff changeset
841 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
842 (unspec_volatile:V8QI [(match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
843 (match_operand:V8QI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
844 VUNSPEC_WCMP_GTU))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
845 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
846 "wcmpgtub%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
847 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
848 (set_attr "type" "wmmx_wcmpgt")]
kono
parents: 67
diff changeset
849 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
850
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
851 (define_insn "gtuv4hi3"
111
kono
parents: 67
diff changeset
852 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
853 (unspec_volatile:V4HI [(match_operand:V4HI 1 "register_operand" "y")
kono
parents: 67
diff changeset
854 (match_operand:V4HI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
855 VUNSPEC_WCMP_GTU))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
856 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
857 "wcmpgtuh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
858 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
859 (set_attr "type" "wmmx_wcmpgt")]
kono
parents: 67
diff changeset
860 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
861
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
862 (define_insn "gtuv2si3"
111
kono
parents: 67
diff changeset
863 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
864 (unspec_volatile:V2SI [(match_operand:V2SI 1 "register_operand" "y")
kono
parents: 67
diff changeset
865 (match_operand:V2SI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
866 VUNSPEC_WCMP_GTU))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
867 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
868 "wcmpgtuw%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
869 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
870 (set_attr "type" "wmmx_wcmpgt")]
kono
parents: 67
diff changeset
871 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
872
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
873 (define_insn "gtv8qi3"
111
kono
parents: 67
diff changeset
874 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
875 (unspec_volatile:V8QI [(match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
876 (match_operand:V8QI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
877 VUNSPEC_WCMP_GT))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
878 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
879 "wcmpgtsb%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
880 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
881 (set_attr "type" "wmmx_wcmpgt")]
kono
parents: 67
diff changeset
882 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
883
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
884 (define_insn "gtv4hi3"
111
kono
parents: 67
diff changeset
885 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
886 (unspec_volatile:V4HI [(match_operand:V4HI 1 "register_operand" "y")
kono
parents: 67
diff changeset
887 (match_operand:V4HI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
888 VUNSPEC_WCMP_GT))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
889 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
890 "wcmpgtsh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
891 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
892 (set_attr "type" "wmmx_wcmpgt")]
kono
parents: 67
diff changeset
893 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
894
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
895 (define_insn "gtv2si3"
111
kono
parents: 67
diff changeset
896 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
897 (unspec_volatile:V2SI [(match_operand:V2SI 1 "register_operand" "y")
kono
parents: 67
diff changeset
898 (match_operand:V2SI 2 "register_operand" "y")]
kono
parents: 67
diff changeset
899 VUNSPEC_WCMP_GT))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
900 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
901 "wcmpgtsw%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
902 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
903 (set_attr "type" "wmmx_wcmpgt")]
kono
parents: 67
diff changeset
904 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
905
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
906 ;; Max/min insns
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
907
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
908 (define_insn "*smax<mode>3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
909 [(set (match_operand:VMMX 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
910 (smax:VMMX (match_operand:VMMX 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
911 (match_operand:VMMX 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
912 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
913 "wmaxs<MMX_char>%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
914 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
915 (set_attr "type" "wmmx_wmax")]
kono
parents: 67
diff changeset
916 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
917
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
918 (define_insn "*umax<mode>3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
919 [(set (match_operand:VMMX 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
920 (umax:VMMX (match_operand:VMMX 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
921 (match_operand:VMMX 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
922 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
923 "wmaxu<MMX_char>%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
924 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
925 (set_attr "type" "wmmx_wmax")]
kono
parents: 67
diff changeset
926 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
927
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
928 (define_insn "*smin<mode>3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
929 [(set (match_operand:VMMX 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
930 (smin:VMMX (match_operand:VMMX 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
931 (match_operand:VMMX 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
932 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
933 "wmins<MMX_char>%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
934 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
935 (set_attr "type" "wmmx_wmin")]
kono
parents: 67
diff changeset
936 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
937
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
938 (define_insn "*umin<mode>3_iwmmxt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
939 [(set (match_operand:VMMX 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
940 (umin:VMMX (match_operand:VMMX 1 "register_operand" "y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
941 (match_operand:VMMX 2 "register_operand" "y")))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
942 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
943 "wminu<MMX_char>%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
944 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
945 (set_attr "type" "wmmx_wmin")]
kono
parents: 67
diff changeset
946 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
947
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
948 ;; Pack/unpack insns.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
949
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
950 (define_insn "iwmmxt_wpackhss"
111
kono
parents: 67
diff changeset
951 [(set (match_operand:V8QI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
952 (vec_concat:V8QI
111
kono
parents: 67
diff changeset
953 (ss_truncate:V4QI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
954 (ss_truncate:V4QI (match_operand:V4HI 2 "register_operand" "y"))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
955 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
956 "wpackhss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
957 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
958 (set_attr "type" "wmmx_wpack")]
kono
parents: 67
diff changeset
959 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
960
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
961 (define_insn "iwmmxt_wpackwss"
111
kono
parents: 67
diff changeset
962 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
963 (vec_concat:V4HI
kono
parents: 67
diff changeset
964 (ss_truncate:V2HI (match_operand:V2SI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
965 (ss_truncate:V2HI (match_operand:V2SI 2 "register_operand" "y"))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
966 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
967 "wpackwss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
968 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
969 (set_attr "type" "wmmx_wpack")]
kono
parents: 67
diff changeset
970 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
971
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
972 (define_insn "iwmmxt_wpackdss"
111
kono
parents: 67
diff changeset
973 [(set (match_operand:V2SI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
974 (vec_concat:V2SI
111
kono
parents: 67
diff changeset
975 (ss_truncate:SI (match_operand:DI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
976 (ss_truncate:SI (match_operand:DI 2 "register_operand" "y"))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
977 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
978 "wpackdss%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
979 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
980 (set_attr "type" "wmmx_wpack")]
kono
parents: 67
diff changeset
981 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
982
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
983 (define_insn "iwmmxt_wpackhus"
111
kono
parents: 67
diff changeset
984 [(set (match_operand:V8QI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
985 (vec_concat:V8QI
111
kono
parents: 67
diff changeset
986 (us_truncate:V4QI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
987 (us_truncate:V4QI (match_operand:V4HI 2 "register_operand" "y"))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
988 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
989 "wpackhus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
990 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
991 (set_attr "type" "wmmx_wpack")]
kono
parents: 67
diff changeset
992 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
993
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
994 (define_insn "iwmmxt_wpackwus"
111
kono
parents: 67
diff changeset
995 [(set (match_operand:V4HI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
996 (vec_concat:V4HI
111
kono
parents: 67
diff changeset
997 (us_truncate:V2HI (match_operand:V2SI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
998 (us_truncate:V2HI (match_operand:V2SI 2 "register_operand" "y"))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
999 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1000 "wpackwus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1001 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1002 (set_attr "type" "wmmx_wpack")]
kono
parents: 67
diff changeset
1003 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1004
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1005 (define_insn "iwmmxt_wpackdus"
111
kono
parents: 67
diff changeset
1006 [(set (match_operand:V2SI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1007 (vec_concat:V2SI
111
kono
parents: 67
diff changeset
1008 (us_truncate:SI (match_operand:DI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1009 (us_truncate:SI (match_operand:DI 2 "register_operand" "y"))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1010 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1011 "wpackdus%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1012 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1013 (set_attr "type" "wmmx_wpack")]
kono
parents: 67
diff changeset
1014 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1015
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1016 (define_insn "iwmmxt_wunpckihb"
111
kono
parents: 67
diff changeset
1017 [(set (match_operand:V8QI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1018 (vec_merge:V8QI
111
kono
parents: 67
diff changeset
1019 (vec_select:V8QI (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1020 (parallel [(const_int 4)
kono
parents: 67
diff changeset
1021 (const_int 0)
kono
parents: 67
diff changeset
1022 (const_int 5)
kono
parents: 67
diff changeset
1023 (const_int 1)
kono
parents: 67
diff changeset
1024 (const_int 6)
kono
parents: 67
diff changeset
1025 (const_int 2)
kono
parents: 67
diff changeset
1026 (const_int 7)
kono
parents: 67
diff changeset
1027 (const_int 3)]))
kono
parents: 67
diff changeset
1028 (vec_select:V8QI (match_operand:V8QI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1029 (parallel [(const_int 0)
kono
parents: 67
diff changeset
1030 (const_int 4)
kono
parents: 67
diff changeset
1031 (const_int 1)
kono
parents: 67
diff changeset
1032 (const_int 5)
kono
parents: 67
diff changeset
1033 (const_int 2)
kono
parents: 67
diff changeset
1034 (const_int 6)
kono
parents: 67
diff changeset
1035 (const_int 3)
kono
parents: 67
diff changeset
1036 (const_int 7)]))
kono
parents: 67
diff changeset
1037 (const_int 85)))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1038 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1039 "wunpckihb%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1040 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1041 (set_attr "type" "wmmx_wunpckih")]
kono
parents: 67
diff changeset
1042 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1043
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1044 (define_insn "iwmmxt_wunpckihh"
111
kono
parents: 67
diff changeset
1045 [(set (match_operand:V4HI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1046 (vec_merge:V4HI
111
kono
parents: 67
diff changeset
1047 (vec_select:V4HI (match_operand:V4HI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1048 (parallel [(const_int 2)
kono
parents: 67
diff changeset
1049 (const_int 0)
kono
parents: 67
diff changeset
1050 (const_int 3)
kono
parents: 67
diff changeset
1051 (const_int 1)]))
kono
parents: 67
diff changeset
1052 (vec_select:V4HI (match_operand:V4HI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1053 (parallel [(const_int 0)
kono
parents: 67
diff changeset
1054 (const_int 2)
kono
parents: 67
diff changeset
1055 (const_int 1)
kono
parents: 67
diff changeset
1056 (const_int 3)]))
kono
parents: 67
diff changeset
1057 (const_int 5)))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1058 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1059 "wunpckihh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1060 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1061 (set_attr "type" "wmmx_wunpckih")]
kono
parents: 67
diff changeset
1062 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1063
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1064 (define_insn "iwmmxt_wunpckihw"
111
kono
parents: 67
diff changeset
1065 [(set (match_operand:V2SI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1066 (vec_merge:V2SI
111
kono
parents: 67
diff changeset
1067 (vec_select:V2SI (match_operand:V2SI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1068 (parallel [(const_int 1)
kono
parents: 67
diff changeset
1069 (const_int 0)]))
kono
parents: 67
diff changeset
1070 (vec_select:V2SI (match_operand:V2SI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1071 (parallel [(const_int 0)
kono
parents: 67
diff changeset
1072 (const_int 1)]))
kono
parents: 67
diff changeset
1073 (const_int 1)))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1074 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1075 "wunpckihw%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1076 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1077 (set_attr "type" "wmmx_wunpckih")]
kono
parents: 67
diff changeset
1078 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1079
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1080 (define_insn "iwmmxt_wunpckilb"
111
kono
parents: 67
diff changeset
1081 [(set (match_operand:V8QI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1082 (vec_merge:V8QI
111
kono
parents: 67
diff changeset
1083 (vec_select:V8QI (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1084 (parallel [(const_int 0)
kono
parents: 67
diff changeset
1085 (const_int 4)
kono
parents: 67
diff changeset
1086 (const_int 1)
kono
parents: 67
diff changeset
1087 (const_int 5)
kono
parents: 67
diff changeset
1088 (const_int 2)
kono
parents: 67
diff changeset
1089 (const_int 6)
kono
parents: 67
diff changeset
1090 (const_int 3)
kono
parents: 67
diff changeset
1091 (const_int 7)]))
kono
parents: 67
diff changeset
1092 (vec_select:V8QI (match_operand:V8QI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1093 (parallel [(const_int 4)
kono
parents: 67
diff changeset
1094 (const_int 0)
kono
parents: 67
diff changeset
1095 (const_int 5)
kono
parents: 67
diff changeset
1096 (const_int 1)
kono
parents: 67
diff changeset
1097 (const_int 6)
kono
parents: 67
diff changeset
1098 (const_int 2)
kono
parents: 67
diff changeset
1099 (const_int 7)
kono
parents: 67
diff changeset
1100 (const_int 3)]))
kono
parents: 67
diff changeset
1101 (const_int 85)))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1102 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1103 "wunpckilb%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1104 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1105 (set_attr "type" "wmmx_wunpckil")]
kono
parents: 67
diff changeset
1106 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1107
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1108 (define_insn "iwmmxt_wunpckilh"
111
kono
parents: 67
diff changeset
1109 [(set (match_operand:V4HI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1110 (vec_merge:V4HI
111
kono
parents: 67
diff changeset
1111 (vec_select:V4HI (match_operand:V4HI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1112 (parallel [(const_int 0)
kono
parents: 67
diff changeset
1113 (const_int 2)
kono
parents: 67
diff changeset
1114 (const_int 1)
kono
parents: 67
diff changeset
1115 (const_int 3)]))
kono
parents: 67
diff changeset
1116 (vec_select:V4HI (match_operand:V4HI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1117 (parallel [(const_int 2)
kono
parents: 67
diff changeset
1118 (const_int 0)
kono
parents: 67
diff changeset
1119 (const_int 3)
kono
parents: 67
diff changeset
1120 (const_int 1)]))
kono
parents: 67
diff changeset
1121 (const_int 5)))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1122 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1123 "wunpckilh%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1124 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1125 (set_attr "type" "wmmx_wunpckil")]
kono
parents: 67
diff changeset
1126 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1127
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1128 (define_insn "iwmmxt_wunpckilw"
111
kono
parents: 67
diff changeset
1129 [(set (match_operand:V2SI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1130 (vec_merge:V2SI
111
kono
parents: 67
diff changeset
1131 (vec_select:V2SI (match_operand:V2SI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1132 (parallel [(const_int 0)
kono
parents: 67
diff changeset
1133 (const_int 1)]))
kono
parents: 67
diff changeset
1134 (vec_select:V2SI (match_operand:V2SI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1135 (parallel [(const_int 1)
kono
parents: 67
diff changeset
1136 (const_int 0)]))
kono
parents: 67
diff changeset
1137 (const_int 1)))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1138 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1139 "wunpckilw%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1140 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1141 (set_attr "type" "wmmx_wunpckil")]
kono
parents: 67
diff changeset
1142 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1143
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1144 (define_insn "iwmmxt_wunpckehub"
111
kono
parents: 67
diff changeset
1145 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1146 (vec_select:V4HI
kono
parents: 67
diff changeset
1147 (zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1148 (parallel [(const_int 4) (const_int 5)
kono
parents: 67
diff changeset
1149 (const_int 6) (const_int 7)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1150 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1151 "wunpckehub%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1152 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1153 (set_attr "type" "wmmx_wunpckeh")]
kono
parents: 67
diff changeset
1154 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1155
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1156 (define_insn "iwmmxt_wunpckehuh"
111
kono
parents: 67
diff changeset
1157 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1158 (vec_select:V2SI
kono
parents: 67
diff changeset
1159 (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1160 (parallel [(const_int 2) (const_int 3)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1161 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1162 "wunpckehuh%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1163 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1164 (set_attr "type" "wmmx_wunpckeh")]
kono
parents: 67
diff changeset
1165 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1166
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1167 (define_insn "iwmmxt_wunpckehuw"
111
kono
parents: 67
diff changeset
1168 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1169 (vec_select:DI
kono
parents: 67
diff changeset
1170 (zero_extend:V2DI (match_operand:V2SI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1171 (parallel [(const_int 1)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1172 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1173 "wunpckehuw%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1174 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1175 (set_attr "type" "wmmx_wunpckeh")]
kono
parents: 67
diff changeset
1176 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1177
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1178 (define_insn "iwmmxt_wunpckehsb"
111
kono
parents: 67
diff changeset
1179 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1180 (vec_select:V4HI
kono
parents: 67
diff changeset
1181 (sign_extend:V8HI (match_operand:V8QI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1182 (parallel [(const_int 4) (const_int 5)
kono
parents: 67
diff changeset
1183 (const_int 6) (const_int 7)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1184 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1185 "wunpckehsb%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1186 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1187 (set_attr "type" "wmmx_wunpckeh")]
kono
parents: 67
diff changeset
1188 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1189
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1190 (define_insn "iwmmxt_wunpckehsh"
111
kono
parents: 67
diff changeset
1191 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1192 (vec_select:V2SI
kono
parents: 67
diff changeset
1193 (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1194 (parallel [(const_int 2) (const_int 3)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1195 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1196 "wunpckehsh%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1197 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1198 (set_attr "type" "wmmx_wunpckeh")]
kono
parents: 67
diff changeset
1199 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1200
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1201 (define_insn "iwmmxt_wunpckehsw"
111
kono
parents: 67
diff changeset
1202 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1203 (vec_select:DI
kono
parents: 67
diff changeset
1204 (sign_extend:V2DI (match_operand:V2SI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1205 (parallel [(const_int 1)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1206 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1207 "wunpckehsw%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1208 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1209 (set_attr "type" "wmmx_wunpckeh")]
kono
parents: 67
diff changeset
1210 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1211
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1212 (define_insn "iwmmxt_wunpckelub"
111
kono
parents: 67
diff changeset
1213 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1214 (vec_select:V4HI
kono
parents: 67
diff changeset
1215 (zero_extend:V8HI (match_operand:V8QI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1216 (parallel [(const_int 0) (const_int 1)
kono
parents: 67
diff changeset
1217 (const_int 2) (const_int 3)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1218 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1219 "wunpckelub%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1220 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1221 (set_attr "type" "wmmx_wunpckel")]
kono
parents: 67
diff changeset
1222 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1223
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1224 (define_insn "iwmmxt_wunpckeluh"
111
kono
parents: 67
diff changeset
1225 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1226 (vec_select:V2SI
kono
parents: 67
diff changeset
1227 (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1228 (parallel [(const_int 0) (const_int 1)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1229 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1230 "wunpckeluh%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1231 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1232 (set_attr "type" "wmmx_wunpckel")]
kono
parents: 67
diff changeset
1233 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1234
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1235 (define_insn "iwmmxt_wunpckeluw"
111
kono
parents: 67
diff changeset
1236 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1237 (vec_select:DI
kono
parents: 67
diff changeset
1238 (zero_extend:V2DI (match_operand:V2SI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1239 (parallel [(const_int 0)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1240 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1241 "wunpckeluw%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1242 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1243 (set_attr "type" "wmmx_wunpckel")]
kono
parents: 67
diff changeset
1244 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1245
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1246 (define_insn "iwmmxt_wunpckelsb"
111
kono
parents: 67
diff changeset
1247 [(set (match_operand:V4HI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1248 (vec_select:V4HI
kono
parents: 67
diff changeset
1249 (sign_extend:V8HI (match_operand:V8QI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1250 (parallel [(const_int 0) (const_int 1)
kono
parents: 67
diff changeset
1251 (const_int 2) (const_int 3)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1252 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1253 "wunpckelsb%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1254 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1255 (set_attr "type" "wmmx_wunpckel")]
kono
parents: 67
diff changeset
1256 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1257
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1258 (define_insn "iwmmxt_wunpckelsh"
111
kono
parents: 67
diff changeset
1259 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1260 (vec_select:V2SI
kono
parents: 67
diff changeset
1261 (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1262 (parallel [(const_int 0) (const_int 1)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1263 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1264 "wunpckelsh%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1265 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1266 (set_attr "type" "wmmx_wunpckel")]
kono
parents: 67
diff changeset
1267 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1268
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1269 (define_insn "iwmmxt_wunpckelsw"
111
kono
parents: 67
diff changeset
1270 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1271 (vec_select:DI
kono
parents: 67
diff changeset
1272 (sign_extend:V2DI (match_operand:V2SI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1273 (parallel [(const_int 0)])))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1274 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1275 "wunpckelsw%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1276 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1277 (set_attr "type" "wmmx_wunpckel")]
kono
parents: 67
diff changeset
1278 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1279
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1280 ;; Shifts
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1281
111
kono
parents: 67
diff changeset
1282 (define_insn "ror<mode>3"
kono
parents: 67
diff changeset
1283 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1284 (rotatert:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1285 (match_operand:SI 2 "imm_or_reg_operand" "z,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1286 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1287 "*
kono
parents: 67
diff changeset
1288 switch (which_alternative)
kono
parents: 67
diff changeset
1289 {
kono
parents: 67
diff changeset
1290 case 0:
kono
parents: 67
diff changeset
1291 return \"wror<MMX_char>g%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1292 case 1:
kono
parents: 67
diff changeset
1293 return arm_output_iwmmxt_shift_immediate (\"wror<MMX_char>\", operands, true);
kono
parents: 67
diff changeset
1294 default:
kono
parents: 67
diff changeset
1295 gcc_unreachable ();
kono
parents: 67
diff changeset
1296 }
kono
parents: 67
diff changeset
1297 "
kono
parents: 67
diff changeset
1298 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1299 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1300 (set_attr "type" "wmmx_wror, wmmx_wror")]
kono
parents: 67
diff changeset
1301 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1302
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1303 (define_insn "ashr<mode>3_iwmmxt"
111
kono
parents: 67
diff changeset
1304 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1305 (ashiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1306 (match_operand:SI 2 "imm_or_reg_operand" "z,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1307 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1308 "*
kono
parents: 67
diff changeset
1309 switch (which_alternative)
kono
parents: 67
diff changeset
1310 {
kono
parents: 67
diff changeset
1311 case 0:
kono
parents: 67
diff changeset
1312 return \"wsra<MMX_char>g%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1313 case 1:
kono
parents: 67
diff changeset
1314 return arm_output_iwmmxt_shift_immediate (\"wsra<MMX_char>\", operands, true);
kono
parents: 67
diff changeset
1315 default:
kono
parents: 67
diff changeset
1316 gcc_unreachable ();
kono
parents: 67
diff changeset
1317 }
kono
parents: 67
diff changeset
1318 "
kono
parents: 67
diff changeset
1319 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1320 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1321 (set_attr "type" "wmmx_wsra, wmmx_wsra")]
kono
parents: 67
diff changeset
1322 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1323
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1324 (define_insn "lshr<mode>3_iwmmxt"
111
kono
parents: 67
diff changeset
1325 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1326 (lshiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1327 (match_operand:SI 2 "imm_or_reg_operand" "z,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1328 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1329 "*
kono
parents: 67
diff changeset
1330 switch (which_alternative)
kono
parents: 67
diff changeset
1331 {
kono
parents: 67
diff changeset
1332 case 0:
kono
parents: 67
diff changeset
1333 return \"wsrl<MMX_char>g%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1334 case 1:
kono
parents: 67
diff changeset
1335 return arm_output_iwmmxt_shift_immediate (\"wsrl<MMX_char>\", operands, false);
kono
parents: 67
diff changeset
1336 default:
kono
parents: 67
diff changeset
1337 gcc_unreachable ();
kono
parents: 67
diff changeset
1338 }
kono
parents: 67
diff changeset
1339 "
kono
parents: 67
diff changeset
1340 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1341 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1342 (set_attr "type" "wmmx_wsrl, wmmx_wsrl")]
kono
parents: 67
diff changeset
1343 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1344
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1345 (define_insn "ashl<mode>3_iwmmxt"
111
kono
parents: 67
diff changeset
1346 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1347 (ashift:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1348 (match_operand:SI 2 "imm_or_reg_operand" "z,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1349 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1350 "*
kono
parents: 67
diff changeset
1351 switch (which_alternative)
kono
parents: 67
diff changeset
1352 {
kono
parents: 67
diff changeset
1353 case 0:
kono
parents: 67
diff changeset
1354 return \"wsll<MMX_char>g%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1355 case 1:
kono
parents: 67
diff changeset
1356 return arm_output_iwmmxt_shift_immediate (\"wsll<MMX_char>\", operands, false);
kono
parents: 67
diff changeset
1357 default:
kono
parents: 67
diff changeset
1358 gcc_unreachable ();
kono
parents: 67
diff changeset
1359 }
kono
parents: 67
diff changeset
1360 "
kono
parents: 67
diff changeset
1361 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1362 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1363 (set_attr "type" "wmmx_wsll, wmmx_wsll")]
kono
parents: 67
diff changeset
1364 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1365
111
kono
parents: 67
diff changeset
1366 (define_insn "ror<mode>3_di"
kono
parents: 67
diff changeset
1367 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1368 (rotatert:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1369 (match_operand:DI 2 "imm_or_reg_operand" "y,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1370 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1371 "*
kono
parents: 67
diff changeset
1372 switch (which_alternative)
kono
parents: 67
diff changeset
1373 {
kono
parents: 67
diff changeset
1374 case 0:
kono
parents: 67
diff changeset
1375 return \"wror<MMX_char>%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1376 case 1:
kono
parents: 67
diff changeset
1377 return arm_output_iwmmxt_shift_immediate (\"wror<MMX_char>\", operands, true);
kono
parents: 67
diff changeset
1378 default:
kono
parents: 67
diff changeset
1379 gcc_unreachable ();
kono
parents: 67
diff changeset
1380 }
kono
parents: 67
diff changeset
1381 "
kono
parents: 67
diff changeset
1382 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1383 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1384 (set_attr "type" "wmmx_wror, wmmx_wror")]
kono
parents: 67
diff changeset
1385 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1386
111
kono
parents: 67
diff changeset
1387 (define_insn "ashr<mode>3_di"
kono
parents: 67
diff changeset
1388 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1389 (ashiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1390 (match_operand:DI 2 "imm_or_reg_operand" "y,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1391 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1392 "*
kono
parents: 67
diff changeset
1393 switch (which_alternative)
kono
parents: 67
diff changeset
1394 {
kono
parents: 67
diff changeset
1395 case 0:
kono
parents: 67
diff changeset
1396 return \"wsra<MMX_char>%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1397 case 1:
kono
parents: 67
diff changeset
1398 return arm_output_iwmmxt_shift_immediate (\"wsra<MMX_char>\", operands, true);
kono
parents: 67
diff changeset
1399 default:
kono
parents: 67
diff changeset
1400 gcc_unreachable ();
kono
parents: 67
diff changeset
1401 }
kono
parents: 67
diff changeset
1402 "
kono
parents: 67
diff changeset
1403 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1404 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1405 (set_attr "type" "wmmx_wsra, wmmx_wsra")]
kono
parents: 67
diff changeset
1406 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1407
111
kono
parents: 67
diff changeset
1408 (define_insn "lshr<mode>3_di"
kono
parents: 67
diff changeset
1409 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1410 (lshiftrt:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1411 (match_operand:DI 2 "register_operand" "y,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1412 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1413 "*
kono
parents: 67
diff changeset
1414 switch (which_alternative)
kono
parents: 67
diff changeset
1415 {
kono
parents: 67
diff changeset
1416 case 0:
kono
parents: 67
diff changeset
1417 return \"wsrl<MMX_char>%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1418 case 1:
kono
parents: 67
diff changeset
1419 return arm_output_iwmmxt_shift_immediate (\"wsrl<MMX_char>\", operands, false);
kono
parents: 67
diff changeset
1420 default:
kono
parents: 67
diff changeset
1421 gcc_unreachable ();
kono
parents: 67
diff changeset
1422 }
kono
parents: 67
diff changeset
1423 "
kono
parents: 67
diff changeset
1424 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1425 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1426 (set_attr "type" "wmmx_wsrl, wmmx_wsrl")]
kono
parents: 67
diff changeset
1427 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1428
111
kono
parents: 67
diff changeset
1429 (define_insn "ashl<mode>3_di"
kono
parents: 67
diff changeset
1430 [(set (match_operand:VSHFT 0 "register_operand" "=y,y")
kono
parents: 67
diff changeset
1431 (ashift:VSHFT (match_operand:VSHFT 1 "register_operand" "y,y")
kono
parents: 67
diff changeset
1432 (match_operand:DI 2 "imm_or_reg_operand" "y,i")))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1433 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1434 "*
kono
parents: 67
diff changeset
1435 switch (which_alternative)
kono
parents: 67
diff changeset
1436 {
kono
parents: 67
diff changeset
1437 case 0:
kono
parents: 67
diff changeset
1438 return \"wsll<MMX_char>%?\\t%0, %1, %2\";
kono
parents: 67
diff changeset
1439 case 1:
kono
parents: 67
diff changeset
1440 return arm_output_iwmmxt_shift_immediate (\"wsll<MMX_char>\", operands, false);
kono
parents: 67
diff changeset
1441 default:
kono
parents: 67
diff changeset
1442 gcc_unreachable ();
kono
parents: 67
diff changeset
1443 }
kono
parents: 67
diff changeset
1444 "
kono
parents: 67
diff changeset
1445 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1446 (set_attr "arch" "*, iwmmxt2")
kono
parents: 67
diff changeset
1447 (set_attr "type" "wmmx_wsll, wmmx_wsll")]
kono
parents: 67
diff changeset
1448 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1449
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1450 (define_insn "iwmmxt_wmadds"
111
kono
parents: 67
diff changeset
1451 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1452 (plus:V2SI
kono
parents: 67
diff changeset
1453 (mult:V2SI
kono
parents: 67
diff changeset
1454 (vec_select:V2SI (sign_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1455 (parallel [(const_int 1) (const_int 3)]))
kono
parents: 67
diff changeset
1456 (vec_select:V2SI (sign_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))
kono
parents: 67
diff changeset
1457 (parallel [(const_int 1) (const_int 3)])))
kono
parents: 67
diff changeset
1458 (mult:V2SI
kono
parents: 67
diff changeset
1459 (vec_select:V2SI (sign_extend:V4SI (match_dup 1))
kono
parents: 67
diff changeset
1460 (parallel [(const_int 0) (const_int 2)]))
kono
parents: 67
diff changeset
1461 (vec_select:V2SI (sign_extend:V4SI (match_dup 2))
kono
parents: 67
diff changeset
1462 (parallel [(const_int 0) (const_int 2)])))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1463 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1464 "wmadds%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1465 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1466 (set_attr "type" "wmmx_wmadd")]
kono
parents: 67
diff changeset
1467 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1468
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1469 (define_insn "iwmmxt_wmaddu"
111
kono
parents: 67
diff changeset
1470 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1471 (plus:V2SI
kono
parents: 67
diff changeset
1472 (mult:V2SI
kono
parents: 67
diff changeset
1473 (vec_select:V2SI (zero_extend:V4SI (match_operand:V4HI 1 "register_operand" "y"))
kono
parents: 67
diff changeset
1474 (parallel [(const_int 1) (const_int 3)]))
kono
parents: 67
diff changeset
1475 (vec_select:V2SI (zero_extend:V4SI (match_operand:V4HI 2 "register_operand" "y"))
kono
parents: 67
diff changeset
1476 (parallel [(const_int 1) (const_int 3)])))
kono
parents: 67
diff changeset
1477 (mult:V2SI
kono
parents: 67
diff changeset
1478 (vec_select:V2SI (zero_extend:V4SI (match_dup 1))
kono
parents: 67
diff changeset
1479 (parallel [(const_int 0) (const_int 2)]))
kono
parents: 67
diff changeset
1480 (vec_select:V2SI (zero_extend:V4SI (match_dup 2))
kono
parents: 67
diff changeset
1481 (parallel [(const_int 0) (const_int 2)])))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1482 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1483 "wmaddu%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1484 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1485 (set_attr "type" "wmmx_wmadd")]
kono
parents: 67
diff changeset
1486 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1487
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1488 (define_insn "iwmmxt_tmia"
111
kono
parents: 67
diff changeset
1489 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1490 (plus:DI (match_operand:DI 1 "register_operand" "0")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1491 (mult:DI (sign_extend:DI
111
kono
parents: 67
diff changeset
1492 (match_operand:SI 2 "register_operand" "r"))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1493 (sign_extend:DI
111
kono
parents: 67
diff changeset
1494 (match_operand:SI 3 "register_operand" "r")))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1495 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1496 "tmia%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
1497 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1498 (set_attr "type" "wmmx_tmia")]
kono
parents: 67
diff changeset
1499 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1500
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1501 (define_insn "iwmmxt_tmiaph"
111
kono
parents: 67
diff changeset
1502 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1503 (plus:DI (match_operand:DI 1 "register_operand" "0")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1504 (plus:DI
111
kono
parents: 67
diff changeset
1505 (mult:DI (sign_extend:DI
kono
parents: 67
diff changeset
1506 (truncate:HI (match_operand:SI 2 "register_operand" "r")))
kono
parents: 67
diff changeset
1507 (sign_extend:DI
kono
parents: 67
diff changeset
1508 (truncate:HI (match_operand:SI 3 "register_operand" "r"))))
kono
parents: 67
diff changeset
1509 (mult:DI (sign_extend:DI
kono
parents: 67
diff changeset
1510 (truncate:HI (ashiftrt:SI (match_dup 2) (const_int 16))))
kono
parents: 67
diff changeset
1511 (sign_extend:DI
kono
parents: 67
diff changeset
1512 (truncate:HI (ashiftrt:SI (match_dup 3) (const_int 16))))))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1513 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1514 "tmiaph%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
1515 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1516 (set_attr "type" "wmmx_tmiaph")]
kono
parents: 67
diff changeset
1517 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1518
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1519 (define_insn "iwmmxt_tmiabb"
111
kono
parents: 67
diff changeset
1520 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1521 (plus:DI (match_operand:DI 1 "register_operand" "0")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1522 (mult:DI (sign_extend:DI
111
kono
parents: 67
diff changeset
1523 (truncate:HI (match_operand:SI 2 "register_operand" "r")))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1524 (sign_extend:DI
111
kono
parents: 67
diff changeset
1525 (truncate:HI (match_operand:SI 3 "register_operand" "r"))))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1526 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1527 "tmiabb%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
1528 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1529 (set_attr "type" "wmmx_tmiaxy")]
kono
parents: 67
diff changeset
1530 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1531
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1532 (define_insn "iwmmxt_tmiatb"
111
kono
parents: 67
diff changeset
1533 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1534 (plus:DI (match_operand:DI 1 "register_operand" "0")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1535 (mult:DI (sign_extend:DI
111
kono
parents: 67
diff changeset
1536 (truncate:HI
kono
parents: 67
diff changeset
1537 (ashiftrt:SI
kono
parents: 67
diff changeset
1538 (match_operand:SI 2 "register_operand" "r")
kono
parents: 67
diff changeset
1539 (const_int 16))))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1540 (sign_extend:DI
111
kono
parents: 67
diff changeset
1541 (truncate:HI
kono
parents: 67
diff changeset
1542 (match_operand:SI 3 "register_operand" "r"))))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1543 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1544 "tmiatb%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
1545 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1546 (set_attr "type" "wmmx_tmiaxy")]
kono
parents: 67
diff changeset
1547 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1548
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1549 (define_insn "iwmmxt_tmiabt"
111
kono
parents: 67
diff changeset
1550 [(set (match_operand:DI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1551 (plus:DI (match_operand:DI 1 "register_operand" "0")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1552 (mult:DI (sign_extend:DI
111
kono
parents: 67
diff changeset
1553 (truncate:HI
kono
parents: 67
diff changeset
1554 (match_operand:SI 2 "register_operand" "r")))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1555 (sign_extend:DI
111
kono
parents: 67
diff changeset
1556 (truncate:HI
kono
parents: 67
diff changeset
1557 (ashiftrt:SI
kono
parents: 67
diff changeset
1558 (match_operand:SI 3 "register_operand" "r")
kono
parents: 67
diff changeset
1559 (const_int 16)))))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1560 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1561 "tmiabt%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
1562 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1563 (set_attr "type" "wmmx_tmiaxy")]
kono
parents: 67
diff changeset
1564 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1565
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1566 (define_insn "iwmmxt_tmiatt"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1567 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1568 (plus:DI (match_operand:DI 1 "register_operand" "0")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1569 (mult:DI (sign_extend:DI
111
kono
parents: 67
diff changeset
1570 (truncate:HI
kono
parents: 67
diff changeset
1571 (ashiftrt:SI
kono
parents: 67
diff changeset
1572 (match_operand:SI 2 "register_operand" "r")
kono
parents: 67
diff changeset
1573 (const_int 16))))
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1574 (sign_extend:DI
111
kono
parents: 67
diff changeset
1575 (truncate:HI
kono
parents: 67
diff changeset
1576 (ashiftrt:SI
kono
parents: 67
diff changeset
1577 (match_operand:SI 3 "register_operand" "r")
kono
parents: 67
diff changeset
1578 (const_int 16)))))))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1579 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1580 "tmiatt%?\\t%0, %2, %3"
111
kono
parents: 67
diff changeset
1581 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1582 (set_attr "type" "wmmx_tmiaxy")]
kono
parents: 67
diff changeset
1583 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1584
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1585 (define_insn "iwmmxt_tmovmskb"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1586 [(set (match_operand:SI 0 "register_operand" "=r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1587 (unspec:SI [(match_operand:V8QI 1 "register_operand" "y")] UNSPEC_TMOVMSK))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1588 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1589 "tmovmskb%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1590 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1591 (set_attr "type" "wmmx_tmovmsk")]
kono
parents: 67
diff changeset
1592 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1593
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1594 (define_insn "iwmmxt_tmovmskh"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1595 [(set (match_operand:SI 0 "register_operand" "=r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1596 (unspec:SI [(match_operand:V4HI 1 "register_operand" "y")] UNSPEC_TMOVMSK))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1597 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1598 "tmovmskh%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1599 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1600 (set_attr "type" "wmmx_tmovmsk")]
kono
parents: 67
diff changeset
1601 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1602
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1603 (define_insn "iwmmxt_tmovmskw"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1604 [(set (match_operand:SI 0 "register_operand" "=r")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1605 (unspec:SI [(match_operand:V2SI 1 "register_operand" "y")] UNSPEC_TMOVMSK))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1606 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1607 "tmovmskw%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1608 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1609 (set_attr "type" "wmmx_tmovmsk")]
kono
parents: 67
diff changeset
1610 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1611
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1612 (define_insn "iwmmxt_waccb"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1613 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1614 (unspec:DI [(match_operand:V8QI 1 "register_operand" "y")] UNSPEC_WACC))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1615 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1616 "waccb%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1617 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1618 (set_attr "type" "wmmx_wacc")]
kono
parents: 67
diff changeset
1619 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1620
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1621 (define_insn "iwmmxt_wacch"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1622 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1623 (unspec:DI [(match_operand:V4HI 1 "register_operand" "y")] UNSPEC_WACC))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1624 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1625 "wacch%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1626 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1627 (set_attr "type" "wmmx_wacc")]
kono
parents: 67
diff changeset
1628 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1629
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1630 (define_insn "iwmmxt_waccw"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1631 [(set (match_operand:DI 0 "register_operand" "=y")
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1632 (unspec:DI [(match_operand:V2SI 1 "register_operand" "y")] UNSPEC_WACC))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1633 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1634 "waccw%?\\t%0, %1"
111
kono
parents: 67
diff changeset
1635 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1636 (set_attr "type" "wmmx_wacc")]
kono
parents: 67
diff changeset
1637 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1638
111
kono
parents: 67
diff changeset
1639 ;; use unspec here to prevent 8 * imm to be optimized by cse
kono
parents: 67
diff changeset
1640 (define_insn "iwmmxt_waligni"
kono
parents: 67
diff changeset
1641 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1642 (unspec:V8QI [(subreg:V8QI
kono
parents: 67
diff changeset
1643 (ashiftrt:TI
kono
parents: 67
diff changeset
1644 (subreg:TI (vec_concat:V16QI
kono
parents: 67
diff changeset
1645 (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1646 (match_operand:V8QI 2 "register_operand" "y")) 0)
kono
parents: 67
diff changeset
1647 (mult:SI
kono
parents: 67
diff changeset
1648 (match_operand:SI 3 "immediate_operand" "i")
kono
parents: 67
diff changeset
1649 (const_int 8))) 0)] UNSPEC_WALIGNI))]
kono
parents: 67
diff changeset
1650 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
1651 "waligni%?\\t%0, %1, %2, %3"
kono
parents: 67
diff changeset
1652 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1653 (set_attr "type" "wmmx_waligni")]
kono
parents: 67
diff changeset
1654 )
kono
parents: 67
diff changeset
1655
kono
parents: 67
diff changeset
1656 (define_insn "iwmmxt_walignr"
kono
parents: 67
diff changeset
1657 [(set (match_operand:V8QI 0 "register_operand" "=y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1658 (subreg:V8QI (ashiftrt:TI
111
kono
parents: 67
diff changeset
1659 (subreg:TI (vec_concat:V16QI
kono
parents: 67
diff changeset
1660 (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1661 (match_operand:V8QI 2 "register_operand" "y")) 0)
kono
parents: 67
diff changeset
1662 (mult:SI
kono
parents: 67
diff changeset
1663 (zero_extract:SI (match_operand:SI 3 "register_operand" "z") (const_int 3) (const_int 0))
kono
parents: 67
diff changeset
1664 (const_int 8))) 0))]
kono
parents: 67
diff changeset
1665 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
1666 "walignr%U3%?\\t%0, %1, %2"
kono
parents: 67
diff changeset
1667 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1668 (set_attr "type" "wmmx_walignr")]
kono
parents: 67
diff changeset
1669 )
kono
parents: 67
diff changeset
1670
kono
parents: 67
diff changeset
1671 (define_insn "iwmmxt_walignr0"
kono
parents: 67
diff changeset
1672 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1673 (subreg:V8QI (ashiftrt:TI
kono
parents: 67
diff changeset
1674 (subreg:TI (vec_concat:V16QI
kono
parents: 67
diff changeset
1675 (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1676 (match_operand:V8QI 2 "register_operand" "y")) 0)
kono
parents: 67
diff changeset
1677 (mult:SI
kono
parents: 67
diff changeset
1678 (zero_extract:SI (reg:SI WCGR0) (const_int 3) (const_int 0))
kono
parents: 67
diff changeset
1679 (const_int 8))) 0))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1680 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1681 "walignr0%?\\t%0, %1, %2"
kono
parents: 67
diff changeset
1682 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1683 (set_attr "type" "wmmx_walignr")]
kono
parents: 67
diff changeset
1684 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1685
111
kono
parents: 67
diff changeset
1686 (define_insn "iwmmxt_walignr1"
kono
parents: 67
diff changeset
1687 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1688 (subreg:V8QI (ashiftrt:TI
kono
parents: 67
diff changeset
1689 (subreg:TI (vec_concat:V16QI
kono
parents: 67
diff changeset
1690 (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1691 (match_operand:V8QI 2 "register_operand" "y")) 0)
kono
parents: 67
diff changeset
1692 (mult:SI
kono
parents: 67
diff changeset
1693 (zero_extract:SI (reg:SI WCGR1) (const_int 3) (const_int 0))
kono
parents: 67
diff changeset
1694 (const_int 8))) 0))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1695 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1696 "walignr1%?\\t%0, %1, %2"
kono
parents: 67
diff changeset
1697 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1698 (set_attr "type" "wmmx_walignr")]
kono
parents: 67
diff changeset
1699 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1700
111
kono
parents: 67
diff changeset
1701 (define_insn "iwmmxt_walignr2"
kono
parents: 67
diff changeset
1702 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1703 (subreg:V8QI (ashiftrt:TI
kono
parents: 67
diff changeset
1704 (subreg:TI (vec_concat:V16QI
kono
parents: 67
diff changeset
1705 (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1706 (match_operand:V8QI 2 "register_operand" "y")) 0)
kono
parents: 67
diff changeset
1707 (mult:SI
kono
parents: 67
diff changeset
1708 (zero_extract:SI (reg:SI WCGR2) (const_int 3) (const_int 0))
kono
parents: 67
diff changeset
1709 (const_int 8))) 0))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1710 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1711 "walignr2%?\\t%0, %1, %2"
kono
parents: 67
diff changeset
1712 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1713 (set_attr "type" "wmmx_walignr")]
kono
parents: 67
diff changeset
1714 )
kono
parents: 67
diff changeset
1715
kono
parents: 67
diff changeset
1716 (define_insn "iwmmxt_walignr3"
kono
parents: 67
diff changeset
1717 [(set (match_operand:V8QI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1718 (subreg:V8QI (ashiftrt:TI
kono
parents: 67
diff changeset
1719 (subreg:TI (vec_concat:V16QI
kono
parents: 67
diff changeset
1720 (match_operand:V8QI 1 "register_operand" "y")
kono
parents: 67
diff changeset
1721 (match_operand:V8QI 2 "register_operand" "y")) 0)
kono
parents: 67
diff changeset
1722 (mult:SI
kono
parents: 67
diff changeset
1723 (zero_extract:SI (reg:SI WCGR3) (const_int 3) (const_int 0))
kono
parents: 67
diff changeset
1724 (const_int 8))) 0))]
kono
parents: 67
diff changeset
1725 "TARGET_REALLY_IWMMXT"
kono
parents: 67
diff changeset
1726 "walignr3%?\\t%0, %1, %2"
kono
parents: 67
diff changeset
1727 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1728 (set_attr "type" "wmmx_walignr")]
kono
parents: 67
diff changeset
1729 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1730
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1731 (define_insn "iwmmxt_wsadb"
111
kono
parents: 67
diff changeset
1732 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1733 (unspec:V2SI [
kono
parents: 67
diff changeset
1734 (match_operand:V2SI 1 "register_operand" "0")
kono
parents: 67
diff changeset
1735 (match_operand:V8QI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1736 (match_operand:V8QI 3 "register_operand" "y")] UNSPEC_WSAD))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1737 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1738 "wsadb%?\\t%0, %2, %3"
kono
parents: 67
diff changeset
1739 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1740 (set_attr "type" "wmmx_wsad")]
kono
parents: 67
diff changeset
1741 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1742
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1743 (define_insn "iwmmxt_wsadh"
111
kono
parents: 67
diff changeset
1744 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1745 (unspec:V2SI [
kono
parents: 67
diff changeset
1746 (match_operand:V2SI 1 "register_operand" "0")
kono
parents: 67
diff changeset
1747 (match_operand:V4HI 2 "register_operand" "y")
kono
parents: 67
diff changeset
1748 (match_operand:V4HI 3 "register_operand" "y")] UNSPEC_WSAD))]
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1749 "TARGET_REALLY_IWMMXT"
111
kono
parents: 67
diff changeset
1750 "wsadh%?\\t%0, %2, %3"
kono
parents: 67
diff changeset
1751 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1752 (set_attr "type" "wmmx_wsad")]
kono
parents: 67
diff changeset
1753 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1754
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1755 (define_insn "iwmmxt_wsadbz"
111
kono
parents: 67
diff changeset
1756 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1757 (unspec:V2SI [(match_operand:V8QI 1 "register_operand" "y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1758 (match_operand:V8QI 2 "register_operand" "y")] UNSPEC_WSADZ))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1759 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1760 "wsadbz%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1761 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1762 (set_attr "type" "wmmx_wsad")]
kono
parents: 67
diff changeset
1763 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1764
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1765 (define_insn "iwmmxt_wsadhz"
111
kono
parents: 67
diff changeset
1766 [(set (match_operand:V2SI 0 "register_operand" "=y")
kono
parents: 67
diff changeset
1767 (unspec:V2SI [(match_operand:V4HI 1 "register_operand" "y")
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1768 (match_operand:V4HI 2 "register_operand" "y")] UNSPEC_WSADZ))]
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1769 "TARGET_REALLY_IWMMXT"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1770 "wsadhz%?\\t%0, %1, %2"
111
kono
parents: 67
diff changeset
1771 [(set_attr "predicable" "yes")
kono
parents: 67
diff changeset
1772 (set_attr "type" "wmmx_wsad")]
kono
parents: 67
diff changeset
1773 )
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1774
111
kono
parents: 67
diff changeset
1775 (include "iwmmxt2.md")