1 # RUN: llvm-mc -triple powerpc64-bgq-linux --show-encoding %s | FileCheck %s
3 # CHECK: qvfabs 3, 5 # encoding: [0x10,0x60,0x2a,0x10]
6 # CHECK: qvfabs 3, 5 # encoding: [0x10,0x60,0x2a,0x10]
8 # CHECK: qvfadd 3, 4, 5 # encoding: [0x10,0x64,0x28,0x2a]
10 # CHECK: qvfadds 3, 4, 5 # encoding: [0x00,0x64,0x28,0x2a]
12 # CHECK: qvfandc 3, 4, 5 # encoding: [0x10,0x64,0x2a,0x08]
14 # CHECK: qvfand 3, 4, 5 # encoding: [0x10,0x64,0x28,0x88]
16 # CHECK: qvfcfid 3, 5 # encoding: [0x10,0x60,0x2e,0x9c]
18 # CHECK: qvfcfids 3, 5 # encoding: [0x00,0x60,0x2e,0x9c]
20 # CHECK: qvfcfidu 3, 5 # encoding: [0x10,0x60,0x2f,0x9c]
22 # CHECK: qvfcfidus 3, 5 # encoding: [0x00,0x60,0x2f,0x9c]
24 # CHECK: qvfclr 3 # encoding: [0x10,0x63,0x18,0x08]
26 # CHECK: qvfcpsgn 3, 4, 5 # encoding: [0x10,0x64,0x28,0x10]
28 # CHECK: qvfctfb 3, 4 # encoding: [0x10,0x64,0x22,0x88]
30 # CHECK: qvfctid 3, 5 # encoding: [0x10,0x60,0x2e,0x5c]
32 # CHECK: qvfctidu 3, 5 # encoding: [0x10,0x60,0x2f,0x5c]
34 # CHECK: qvfctiduz 3, 5 # encoding: [0x10,0x60,0x2f,0x5e]
36 # CHECK: qvfctidz 3, 5 # encoding: [0x10,0x60,0x2e,0x5e]
38 # CHECK: qvfctiw 3, 5 # encoding: [0x10,0x60,0x28,0x1c]
40 # CHECK: qvfctiwu 3, 5 # encoding: [0x10,0x60,0x29,0x1c]
42 # CHECK: qvfctiwuz 3, 5 # encoding: [0x10,0x60,0x29,0x1e]
44 # CHECK: qvfctiwz 3, 5 # encoding: [0x10,0x60,0x28,0x1e]
46 # CHECK: qvfequ 3, 4, 5 # encoding: [0x10,0x64,0x2c,0x88]
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]
52 # CHECK: qvfmadds 3, 4, 6, 5 # encoding: [0x00,0x64,0x29,0xba]
54 # CHECK: qvfmr 3, 5 # encoding: [0x10,0x60,0x28,0x90]
56 # CHECK: qvfmsub 3, 4, 6, 5 # encoding: [0x10,0x64,0x29,0xb8]
58 # CHECK: qvfmsubs 3, 4, 6, 5 # encoding: [0x00,0x64,0x29,0xb8]
60 # CHECK: qvfmul 3, 4, 6 # encoding: [0x10,0x64,0x01,0xb2]
62 # CHECK: qvfmuls 3, 4, 6 # encoding: [0x00,0x64,0x01,0xb2]
64 # CHECK: qvfnabs 3, 5 # encoding: [0x10,0x60,0x29,0x10]
66 # CHECK: qvfnand 3, 4, 5 # encoding: [0x10,0x64,0x2f,0x08]
68 # CHECK: qvfneg 3, 5 # encoding: [0x10,0x60,0x28,0x50]
70 # CHECK: qvfnmadd 3, 4, 6, 5 # encoding: [0x10,0x64,0x29,0xbe]
72 # CHECK: qvfnmadds 3, 4, 6, 5 # encoding: [0x00,0x64,0x29,0xbe]
74 # CHECK: qvfnmsub 3, 4, 6, 5 # encoding: [0x10,0x64,0x29,0xbc]
76 # CHECK: qvfnmsubs 3, 4, 6, 5 # encoding: [0x00,0x64,0x29,0xbc]
78 # CHECK: qvfnor 3, 4, 5 # encoding: [0x10,0x64,0x2c,0x08]
80 # CHECK: qvfnot 3, 4 # encoding: [0x10,0x64,0x25,0x08]
82 # CHECK: qvforc 3, 4, 5 # encoding: [0x10,0x64,0x2e,0x88]
84 # CHECK: qvfor 3, 4, 5 # encoding: [0x10,0x64,0x2b,0x88]
86 # CHECK: qvfperm 3, 4, 5, 6 # encoding: [0x10,0x64,0x29,0x8c]
88 # CHECK: qvfre 3, 5 # encoding: [0x10,0x60,0x28,0x30]
90 # CHECK: qvfres 3, 5 # encoding: [0x00,0x60,0x28,0x30]
92 # CHECK: qvfrim 3, 5 # encoding: [0x10,0x60,0x2b,0xd0]
94 # CHECK: qvfrin 3, 5 # encoding: [0x10,0x60,0x2b,0x10]
96 # CHECK: qvfrip 3, 5 # encoding: [0x10,0x60,0x2b,0x90]
98 # CHECK: qvfriz 3, 5 # encoding: [0x10,0x60,0x2b,0x50]
100 # CHECK: qvfrsp 3, 5 # encoding: [0x10,0x60,0x28,0x18]
102 # CHECK: qvfrsqrte 3, 5 # encoding: [0x10,0x60,0x28,0x34]
104 # CHECK: qvfrsqrtes 3, 5 # encoding: [0x00,0x60,0x28,0x34]
106 # CHECK: qvfsel 3, 4, 6, 5 # encoding: [0x10,0x64,0x29,0xae]
108 # CHECK: qvfset 3 # encoding: [0x10,0x63,0x1f,0x88]
110 # CHECK: qvfsub 3, 4, 5 # encoding: [0x10,0x64,0x28,0x28]
112 # CHECK: qvfsubs 3, 4, 5 # encoding: [0x00,0x64,0x28,0x28]
114 # CHECK: qvfxmadd 3, 4, 6, 5 # encoding: [0x10,0x64,0x29,0x92]
116 # CHECK: qvfxmadds 3, 4, 6, 5 # encoding: [0x00,0x64,0x29,0x92]
118 # CHECK: qvfxmul 3, 4, 6 # encoding: [0x10,0x64,0x01,0xa2]
120 # CHECK: qvfxmuls 3, 4, 6 # encoding: [0x00,0x64,0x01,0xa2]
122 # CHECK: qvfxor 3, 4, 5 # encoding: [0x10,0x64,0x2b,0x08]
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]
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]
138 # CHECK: qvlfcdux 3, 9, 11 # encoding: [0x7c,0x69,0x58,0xce]
140 # CHECK: qvlfcdxa 3, 10, 11 # encoding: [0x7c,0x6a,0x58,0x8f]
142 # CHECK: qvlfcdx 3, 10, 11 # encoding: [0x7c,0x6a,0x58,0x8e]
144 # CHECK: qvlfcsuxa 3, 9, 11 # encoding: [0x7c,0x69,0x58,0x4f]
146 # CHECK: qvlfcsux 3, 9, 11 # encoding: [0x7c,0x69,0x58,0x4e]
148 # CHECK: qvlfcsxa 3, 10, 11 # encoding: [0x7c,0x6a,0x58,0x0f]
150 # CHECK: qvlfcsx 3, 10, 11 # encoding: [0x7c,0x6a,0x58,0x0e]
152 # CHECK: qvlfduxa 3, 9, 11 # encoding: [0x7c,0x69,0x5c,0xcf]
154 # CHECK: qvlfdux 3, 9, 11 # encoding: [0x7c,0x69,0x5c,0xce]
156 # CHECK: qvlfdxa 3, 10, 11 # encoding: [0x7c,0x6a,0x5c,0x8f]
158 # CHECK: qvlfdx 3, 10, 11 # encoding: [0x7c,0x6a,0x5c,0x8e]
160 # CHECK: qvlfiwaxa 3, 10, 11 # encoding: [0x7c,0x6a,0x5e,0xcf]
162 # CHECK: qvlfiwax 3, 10, 11 # encoding: [0x7c,0x6a,0x5e,0xce]
164 # CHECK: qvlfiwzxa 3, 10, 11 # encoding: [0x7c,0x6a,0x5e,0x8f]
166 # CHECK: qvlfiwzx 3, 10, 11 # encoding: [0x7c,0x6a,0x5e,0x8e]
168 # CHECK: qvlfsuxa 3, 9, 11 # encoding: [0x7c,0x69,0x5c,0x4f]
170 # CHECK: qvlfsux 3, 9, 11 # encoding: [0x7c,0x69,0x5c,0x4e]
172 # CHECK: qvlfsxa 3, 10, 11 # encoding: [0x7c,0x6a,0x5c,0x0f]
174 # CHECK: qvlfsx 3, 10, 11 # encoding: [0x7c,0x6a,0x5c,0x0e]
176 # CHECK: qvlpcldx 3, 10, 11 # encoding: [0x7c,0x6a,0x5c,0x8c]
178 # CHECK: qvlpclsx 3, 10, 11 # encoding: [0x7c,0x6a,0x5c,0x0c]
180 # CHECK: qvlpcrdx 3, 10, 11 # encoding: [0x7c,0x6a,0x58,0x8c]
182 # CHECK: qvlpcrsx 3, 10, 11 # encoding: [0x7c,0x6a,0x58,0x0c]
184 # CHECK: qvstfcduxa 2, 9, 11 # encoding: [0x7c,0x49,0x59,0xcf]
186 # CHECK: qvstfcduxia 2, 9, 11 # encoding: [0x7c,0x49,0x59,0xcb]
188 # CHECK: qvstfcduxi 2, 9, 11 # encoding: [0x7c,0x49,0x59,0xca]
190 # CHECK: qvstfcdux 2, 9, 11 # encoding: [0x7c,0x49,0x59,0xce]
192 # CHECK: qvstfcdxa 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x8f]
194 # CHECK: qvstfcdxia 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x8b]
196 # CHECK: qvstfcdxi 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x8a]
198 # CHECK: qvstfcdx 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x8e]
200 # CHECK: qvstfcsuxa 2, 9, 11 # encoding: [0x7c,0x49,0x59,0x4f]
202 # CHECK: qvstfcsuxia 2, 9, 11 # encoding: [0x7c,0x49,0x59,0x4b]
204 # CHECK: qvstfcsuxi 2, 9, 11 # encoding: [0x7c,0x49,0x59,0x4a]
206 # CHECK: qvstfcsux 2, 9, 11 # encoding: [0x7c,0x49,0x59,0x4e]
208 # CHECK: qvstfcsxa 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x0f]
210 # CHECK: qvstfcsxia 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x0b]
212 # CHECK: qvstfcsxi 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x0a]
214 # CHECK: qvstfcsx 2, 10, 11 # encoding: [0x7c,0x4a,0x59,0x0e]
216 # CHECK: qvstfduxa 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0xcf]
218 # CHECK: qvstfduxia 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0xcb]
220 # CHECK: qvstfduxi 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0xca]
222 # CHECK: qvstfdux 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0xce]
224 # CHECK: qvstfdxa 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x8f]
226 # CHECK: qvstfdxia 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x8b]
228 # CHECK: qvstfdxi 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x8a]
230 # CHECK: qvstfdx 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x8e]
232 # CHECK: qvstfiwxa 2, 10, 11 # encoding: [0x7c,0x4a,0x5f,0x8f]
234 # CHECK: qvstfiwx 2, 10, 11 # encoding: [0x7c,0x4a,0x5f,0x8e]
236 # CHECK: qvstfsuxa 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0x4f]
238 # CHECK: qvstfsuxia 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0x4b]
240 # CHECK: qvstfsuxi 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0x4a]
242 # CHECK: qvstfsux 2, 9, 11 # encoding: [0x7c,0x49,0x5d,0x4e]
244 # CHECK: qvstfsxa 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x0f]
246 # CHECK: qvstfsxia 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x0b]
248 # CHECK: qvstfsxi 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x0a]
250 # CHECK: qvstfsx 2, 10, 11 # encoding: [0x7c,0x4a,0x5d,0x0e]