1# RUN: llvm-mc -triple powerpc64-bgq-linux --show-encoding %s | FileCheck %s
2
3# CHECK: qvfabs 3, 5                     # encoding: [0x10,0x60,0x2a,0x10]
4         qvfabs %q3, %q5
5
6# CHECK: qvfabs 3, 5                     # encoding: [0x10,0x60,0x2a,0x10]
7         qvfabs 3, 5
8# CHECK: qvfadd 3, 4, 5                  # encoding: [0x10,0x64,0x28,0x2a]
9         qvfadd 3, 4, 5
10# CHECK: qvfadds 3, 4, 5                 # encoding: [0x00,0x64,0x28,0x2a]
11         qvfadds 3, 4, 5
12# CHECK: qvfandc 3, 4, 5                 # encoding: [0x10,0x64,0x2a,0x08]
13         qvfandc 3, 4, 5
14# CHECK: qvfand 3, 4, 5                  # encoding: [0x10,0x64,0x28,0x88]
15         qvfand 3, 4, 5
16# CHECK: qvfcfid 3, 5                    # encoding: [0x10,0x60,0x2e,0x9c]
17         qvfcfid 3, 5
18# CHECK: qvfcfids 3, 5                   # encoding: [0x00,0x60,0x2e,0x9c]
19         qvfcfids 3, 5
20# CHECK: qvfcfidu 3, 5                   # encoding: [0x10,0x60,0x2f,0x9c]
21         qvfcfidu 3, 5
22# CHECK: qvfcfidus 3, 5                  # encoding: [0x00,0x60,0x2f,0x9c]
23         qvfcfidus 3, 5
24# CHECK: qvfclr 3                        # encoding: [0x10,0x63,0x18,0x08]
25         qvfclr 3
26# CHECK: qvfcpsgn 3, 4, 5                # encoding: [0x10,0x64,0x28,0x10]
27         qvfcpsgn 3, 4, 5
28# CHECK: qvfctfb 3, 4                    # encoding: [0x10,0x64,0x22,0x88]
29         qvfctfb 3, 4
30# CHECK: qvfctid 3, 5                    # encoding: [0x10,0x60,0x2e,0x5c]
31         qvfctid 3, 5
32# CHECK: qvfctidu 3, 5                   # encoding: [0x10,0x60,0x2f,0x5c]
33         qvfctidu 3, 5
34# CHECK: qvfctiduz 3, 5                  # encoding: [0x10,0x60,0x2f,0x5e]
35         qvfctiduz 3, 5
36# CHECK: qvfctidz 3, 5                   # encoding: [0x10,0x60,0x2e,0x5e]
37         qvfctidz 3, 5
38# CHECK: qvfctiw 3, 5                    # encoding: [0x10,0x60,0x28,0x1c]
39         qvfctiw 3, 5
40# CHECK: qvfctiwu 3, 5                   # encoding: [0x10,0x60,0x29,0x1c]
41         qvfctiwu 3, 5
42# CHECK: qvfctiwuz 3, 5                  # encoding: [0x10,0x60,0x29,0x1e]
43         qvfctiwuz 3, 5
44# CHECK: qvfctiwz 3, 5                   # encoding: [0x10,0x60,0x28,0x1e]
45         qvfctiwz 3, 5
46# CHECK: qvfequ 3, 4, 5                  # encoding: [0x10,0x64,0x2c,0x88]
47         qvfequ 3, 4, 5
48# CHECK: qvflogical 3, 4, 5, 12          # encoding: [0x10,0x64,0x2e,0x08]
49         qvflogical 3, 4, 5, 12
50# CHECK: qvfmadd 3, 4, 6, 5              # encoding: [0x10,0x64,0x29,0xba]
51         qvfmadd 3, 4, 6, 5
52# CHECK: qvfmadds 3, 4, 6, 5             # encoding: [0x00,0x64,0x29,0xba]
53         qvfmadds 3, 4, 6, 5
54# CHECK: qvfmr 3, 5                      # encoding: [0x10,0x60,0x28,0x90]
55         qvfmr 3, 5
56# CHECK: qvfmsub 3, 4, 6, 5              # encoding: [0x10,0x64,0x29,0xb8]
57         qvfmsub 3, 4, 6, 5
58# CHECK: qvfmsubs 3, 4, 6, 5             # encoding: [0x00,0x64,0x29,0xb8]
59         qvfmsubs 3, 4, 6, 5
60# CHECK: qvfmul 3, 4, 6                  # encoding: [0x10,0x64,0x01,0xb2]
61         qvfmul 3, 4, 6
62# CHECK: qvfmuls 3, 4, 6                 # encoding: [0x00,0x64,0x01,0xb2]
63         qvfmuls 3, 4, 6
64# CHECK: qvfnabs 3, 5                    # encoding: [0x10,0x60,0x29,0x10]
65         qvfnabs 3, 5
66# CHECK: qvfnand 3, 4, 5                 # encoding: [0x10,0x64,0x2f,0x08]
67         qvfnand 3, 4, 5
68# CHECK: qvfneg 3, 5                     # encoding: [0x10,0x60,0x28,0x50]
69         qvfneg 3, 5
70# CHECK: qvfnmadd 3, 4, 6, 5             # encoding: [0x10,0x64,0x29,0xbe]
71         qvfnmadd 3, 4, 6, 5
72# CHECK: qvfnmadds 3, 4, 6, 5            # encoding: [0x00,0x64,0x29,0xbe]
73         qvfnmadds 3, 4, 6, 5
74# CHECK: qvfnmsub 3, 4, 6, 5             # encoding: [0x10,0x64,0x29,0xbc]
75         qvfnmsub 3, 4, 6, 5
76# CHECK: qvfnmsubs 3, 4, 6, 5            # encoding: [0x00,0x64,0x29,0xbc]
77         qvfnmsubs 3, 4, 6, 5
78# CHECK: qvfnor 3, 4, 5                  # encoding: [0x10,0x64,0x2c,0x08]
79         qvfnor 3, 4, 5
80# CHECK: qvfnot 3, 4                     # encoding: [0x10,0x64,0x25,0x08]
81         qvfnot 3, 4
82# CHECK: qvforc 3, 4, 5                  # encoding: [0x10,0x64,0x2e,0x88]
83         qvforc 3, 4, 5
84# CHECK: qvfor 3, 4, 5                   # encoding: [0x10,0x64,0x2b,0x88]
85         qvfor 3, 4, 5
86# CHECK: qvfperm 3, 4, 5, 6              # encoding: [0x10,0x64,0x29,0x8c]
87         qvfperm 3, 4, 5, 6
88# CHECK: qvfre 3, 5                      # encoding: [0x10,0x60,0x28,0x30]
89         qvfre 3, 5
90# CHECK: qvfres 3, 5                     # encoding: [0x00,0x60,0x28,0x30]
91         qvfres 3, 5
92# CHECK: qvfrim 3, 5                     # encoding: [0x10,0x60,0x2b,0xd0]
93         qvfrim 3, 5
94# CHECK: qvfrin 3, 5                     # encoding: [0x10,0x60,0x2b,0x10]
95         qvfrin 3, 5
96# CHECK: qvfrip 3, 5                     # encoding: [0x10,0x60,0x2b,0x90]
97         qvfrip 3, 5
98# CHECK: qvfriz 3, 5                     # encoding: [0x10,0x60,0x2b,0x50]
99         qvfriz 3, 5
100# CHECK: qvfrsp 3, 5                     # encoding: [0x10,0x60,0x28,0x18]
101         qvfrsp 3, 5
102# CHECK: qvfrsqrte 3, 5                  # encoding: [0x10,0x60,0x28,0x34]
103         qvfrsqrte 3, 5
104# CHECK: qvfrsqrtes 3, 5                 # encoding: [0x00,0x60,0x28,0x34]
105         qvfrsqrtes 3, 5
106# CHECK: qvfsel 3, 4, 6, 5               # encoding: [0x10,0x64,0x29,0xae]
107         qvfsel 3, 4, 6, 5
108# CHECK: qvfset 3                        # encoding: [0x10,0x63,0x1f,0x88]
109         qvfset 3
110# CHECK: qvfsub 3, 4, 5                  # encoding: [0x10,0x64,0x28,0x28]
111         qvfsub 3, 4, 5
112# CHECK: qvfsubs 3, 4, 5                 # encoding: [0x00,0x64,0x28,0x28]
113         qvfsubs 3, 4, 5
114# CHECK: qvfxmadd 3, 4, 6, 5             # encoding: [0x10,0x64,0x29,0x92]
115         qvfxmadd 3, 4, 6, 5
116# CHECK: qvfxmadds 3, 4, 6, 5            # encoding: [0x00,0x64,0x29,0x92]
117         qvfxmadds 3, 4, 6, 5
118# CHECK: qvfxmul 3, 4, 6                 # encoding: [0x10,0x64,0x01,0xa2]
119         qvfxmul 3, 4, 6
120# CHECK: qvfxmuls 3, 4, 6                # encoding: [0x00,0x64,0x01,0xa2]
121         qvfxmuls 3, 4, 6
122# CHECK: qvfxor 3, 4, 5                  # encoding: [0x10,0x64,0x2b,0x08]
123         qvfxor 3, 4, 5
124# CHECK: qvfxxcpnmadd 3, 4, 6, 5         # encoding: [0x10,0x64,0x29,0x86]
125         qvfxxcpnmadd 3, 4, 6, 5
126# CHECK: qvfxxcpnmadds 3, 4, 6, 5        # encoding: [0x00,0x64,0x29,0x86]
127         qvfxxcpnmadds 3, 4, 6, 5
128# CHECK: qvfxxmadd 3, 4, 6, 5            # encoding: [0x10,0x64,0x29,0x82]
129         qvfxxmadd 3, 4, 6, 5
130# CHECK: qvfxxmadds 3, 4, 6, 5           # encoding: [0x00,0x64,0x29,0x82]
131         qvfxxmadds 3, 4, 6, 5
132# CHECK: qvfxxnpmadd 3, 4, 6, 5          # encoding: [0x10,0x64,0x29,0x96]
133         qvfxxnpmadd 3, 4, 6, 5
134# CHECK: qvfxxnpmadds 3, 4, 6, 5         # encoding: [0x00,0x64,0x29,0x96]
135         qvfxxnpmadds 3, 4, 6, 5
136# CHECK: qvlfcduxa 3, 9, 11              # encoding: [0x7c,0x69,0x58,0xcf]
137         qvlfcduxa 3, 9, 11
138# CHECK: qvlfcdux 3, 9, 11               # encoding: [0x7c,0x69,0x58,0xce]
139         qvlfcdux 3, 9, 11
140# CHECK: qvlfcdxa 3, 10, 11              # encoding: [0x7c,0x6a,0x58,0x8f]
141         qvlfcdxa 3, 10, 11
142# CHECK: qvlfcdx 3, 10, 11               # encoding: [0x7c,0x6a,0x58,0x8e]
143         qvlfcdx 3, 10, 11
144# CHECK: qvlfcsuxa 3, 9, 11              # encoding: [0x7c,0x69,0x58,0x4f]
145         qvlfcsuxa 3, 9, 11
146# CHECK: qvlfcsux 3, 9, 11               # encoding: [0x7c,0x69,0x58,0x4e]
147         qvlfcsux 3, 9, 11
148# CHECK: qvlfcsxa 3, 10, 11              # encoding: [0x7c,0x6a,0x58,0x0f]
149         qvlfcsxa 3, 10, 11
150# CHECK: qvlfcsx 3, 10, 11               # encoding: [0x7c,0x6a,0x58,0x0e]
151         qvlfcsx 3, 10, 11
152# CHECK: qvlfduxa 3, 9, 11               # encoding: [0x7c,0x69,0x5c,0xcf]
153         qvlfduxa 3, 9, 11
154# CHECK: qvlfdux 3, 9, 11                # encoding: [0x7c,0x69,0x5c,0xce]
155         qvlfdux 3, 9, 11
156# CHECK: qvlfdxa 3, 10, 11               # encoding: [0x7c,0x6a,0x5c,0x8f]
157         qvlfdxa 3, 10, 11
158# CHECK: qvlfdx 3, 10, 11                # encoding: [0x7c,0x6a,0x5c,0x8e]
159         qvlfdx 3, 10, 11
160# CHECK: qvlfiwaxa 3, 10, 11             # encoding: [0x7c,0x6a,0x5e,0xcf]
161         qvlfiwaxa 3, 10, 11
162# CHECK: qvlfiwax 3, 10, 11              # encoding: [0x7c,0x6a,0x5e,0xce]
163         qvlfiwax 3, 10, 11
164# CHECK: qvlfiwzxa 3, 10, 11             # encoding: [0x7c,0x6a,0x5e,0x8f]
165         qvlfiwzxa 3, 10, 11
166# CHECK: qvlfiwzx 3, 10, 11              # encoding: [0x7c,0x6a,0x5e,0x8e]
167         qvlfiwzx 3, 10, 11
168# CHECK: qvlfsuxa 3, 9, 11               # encoding: [0x7c,0x69,0x5c,0x4f]
169         qvlfsuxa 3, 9, 11
170# CHECK: qvlfsux 3, 9, 11                # encoding: [0x7c,0x69,0x5c,0x4e]
171         qvlfsux 3, 9, 11
172# CHECK: qvlfsxa 3, 10, 11               # encoding: [0x7c,0x6a,0x5c,0x0f]
173         qvlfsxa 3, 10, 11
174# CHECK: qvlfsx 3, 10, 11                # encoding: [0x7c,0x6a,0x5c,0x0e]
175         qvlfsx 3, 10, 11
176# CHECK: qvlpcldx 3, 10, 11              # encoding: [0x7c,0x6a,0x5c,0x8c]
177         qvlpcldx 3, 10, 11
178# CHECK: qvlpclsx 3, 10, 11              # encoding: [0x7c,0x6a,0x5c,0x0c]
179         qvlpclsx 3, 10, 11
180# CHECK: qvlpcrdx 3, 10, 11              # encoding: [0x7c,0x6a,0x58,0x8c]
181         qvlpcrdx 3, 10, 11
182# CHECK: qvlpcrsx 3, 10, 11              # encoding: [0x7c,0x6a,0x58,0x0c]
183         qvlpcrsx 3, 10, 11
184# CHECK: qvstfcduxa 2, 9, 11             # encoding: [0x7c,0x49,0x59,0xcf]
185         qvstfcduxa 2, 9, 11
186# CHECK: qvstfcduxia 2, 9, 11            # encoding: [0x7c,0x49,0x59,0xcb]
187         qvstfcduxia 2, 9, 11
188# CHECK: qvstfcduxi 2, 9, 11             # encoding: [0x7c,0x49,0x59,0xca]
189         qvstfcduxi 2, 9, 11
190# CHECK: qvstfcdux 2, 9, 11              # encoding: [0x7c,0x49,0x59,0xce]
191         qvstfcdux 2, 9, 11
192# CHECK: qvstfcdxa 2, 10, 11             # encoding: [0x7c,0x4a,0x59,0x8f]
193         qvstfcdxa 2, 10, 11
194# CHECK: qvstfcdxia 2, 10, 11            # encoding: [0x7c,0x4a,0x59,0x8b]
195         qvstfcdxia 2, 10, 11
196# CHECK: qvstfcdxi 2, 10, 11             # encoding: [0x7c,0x4a,0x59,0x8a]
197         qvstfcdxi 2, 10, 11
198# CHECK: qvstfcdx 2, 10, 11              # encoding: [0x7c,0x4a,0x59,0x8e]
199         qvstfcdx 2, 10, 11
200# CHECK: qvstfcsuxa 2, 9, 11             # encoding: [0x7c,0x49,0x59,0x4f]
201         qvstfcsuxa 2, 9, 11
202# CHECK: qvstfcsuxia 2, 9, 11            # encoding: [0x7c,0x49,0x59,0x4b]
203         qvstfcsuxia 2, 9, 11
204# CHECK: qvstfcsuxi 2, 9, 11             # encoding: [0x7c,0x49,0x59,0x4a]
205         qvstfcsuxi 2, 9, 11
206# CHECK: qvstfcsux 2, 9, 11              # encoding: [0x7c,0x49,0x59,0x4e]
207         qvstfcsux 2, 9, 11
208# CHECK: qvstfcsxa 2, 10, 11             # encoding: [0x7c,0x4a,0x59,0x0f]
209         qvstfcsxa 2, 10, 11
210# CHECK: qvstfcsxia 2, 10, 11            # encoding: [0x7c,0x4a,0x59,0x0b]
211         qvstfcsxia 2, 10, 11
212# CHECK: qvstfcsxi 2, 10, 11             # encoding: [0x7c,0x4a,0x59,0x0a]
213         qvstfcsxi 2, 10, 11
214# CHECK: qvstfcsx 2, 10, 11              # encoding: [0x7c,0x4a,0x59,0x0e]
215         qvstfcsx 2, 10, 11
216# CHECK: qvstfduxa 2, 9, 11              # encoding: [0x7c,0x49,0x5d,0xcf]
217         qvstfduxa 2, 9, 11
218# CHECK: qvstfduxia 2, 9, 11             # encoding: [0x7c,0x49,0x5d,0xcb]
219         qvstfduxia 2, 9, 11
220# CHECK: qvstfduxi 2, 9, 11              # encoding: [0x7c,0x49,0x5d,0xca]
221         qvstfduxi 2, 9, 11
222# CHECK: qvstfdux 2, 9, 11               # encoding: [0x7c,0x49,0x5d,0xce]
223         qvstfdux 2, 9, 11
224# CHECK: qvstfdxa 2, 10, 11              # encoding: [0x7c,0x4a,0x5d,0x8f]
225         qvstfdxa 2, 10, 11
226# CHECK: qvstfdxia 2, 10, 11             # encoding: [0x7c,0x4a,0x5d,0x8b]
227         qvstfdxia 2, 10, 11
228# CHECK: qvstfdxi 2, 10, 11              # encoding: [0x7c,0x4a,0x5d,0x8a]
229         qvstfdxi 2, 10, 11
230# CHECK: qvstfdx 2, 10, 11               # encoding: [0x7c,0x4a,0x5d,0x8e]
231         qvstfdx 2, 10, 11
232# CHECK: qvstfiwxa 2, 10, 11             # encoding: [0x7c,0x4a,0x5f,0x8f]
233         qvstfiwxa 2, 10, 11
234# CHECK: qvstfiwx 2, 10, 11              # encoding: [0x7c,0x4a,0x5f,0x8e]
235         qvstfiwx 2, 10, 11
236# CHECK: qvstfsuxa 2, 9, 11              # encoding: [0x7c,0x49,0x5d,0x4f]
237         qvstfsuxa 2, 9, 11
238# CHECK: qvstfsuxia 2, 9, 11             # encoding: [0x7c,0x49,0x5d,0x4b]
239         qvstfsuxia 2, 9, 11
240# CHECK: qvstfsuxi 2, 9, 11              # encoding: [0x7c,0x49,0x5d,0x4a]
241         qvstfsuxi 2, 9, 11
242# CHECK: qvstfsux 2, 9, 11               # encoding: [0x7c,0x49,0x5d,0x4e]
243         qvstfsux 2, 9, 11
244# CHECK: qvstfsxa 2, 10, 11              # encoding: [0x7c,0x4a,0x5d,0x0f]
245         qvstfsxa 2, 10, 11
246# CHECK: qvstfsxia 2, 10, 11             # encoding: [0x7c,0x4a,0x5d,0x0b]
247         qvstfsxia 2, 10, 11
248# CHECK: qvstfsxi 2, 10, 11              # encoding: [0x7c,0x4a,0x5d,0x0a]
249         qvstfsxi 2, 10, 11
250# CHECK: qvstfsx 2, 10, 11               # encoding: [0x7c,0x4a,0x5d,0x0e]
251         qvstfsx 2, 10, 11
252
253