• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@ RUN: llvm-mc -mcpu=cortex-a8 -triple armv7-apple-darwin -show-encoding < %s | FileCheck %s
2
3@ CHECK: vadd.f64 d16, d17, d16      @ encoding: [0xa0,0x0b,0x71,0xee]
4        vadd.f64        d16, d17, d16
5
6@ CHECK: vadd.f32 s0, s1, s0         @ encoding: [0x80,0x0a,0x30,0xee]
7        vadd.f32        s0, s1, s0
8
9@ CHECK: vsub.f64 d16, d17, d16      @ encoding: [0xe0,0x0b,0x71,0xee]
10        vsub.f64        d16, d17, d16
11
12@ CHECK: vsub.f32 s0, s1, s0         @ encoding: [0xc0,0x0a,0x30,0xee]
13        vsub.f32        s0, s1, s0
14
15@ CHECK: vdiv.f64 d16, d17, d16      @ encoding: [0xa0,0x0b,0xc1,0xee]
16        vdiv.f64        d16, d17, d16
17
18@ CHECK: vdiv.f32 s0, s1, s0         @ encoding: [0x80,0x0a,0x80,0xee]
19        vdiv.f32        s0, s1, s0
20
21@ CHECK: vmul.f64 d16, d17, d16      @ encoding: [0xa0,0x0b,0x61,0xee]
22        vmul.f64        d16, d17, d16
23
24@ CHECK: vmul.f32 s0, s1, s0         @ encoding: [0x80,0x0a,0x20,0xee]
25        vmul.f32        s0, s1, s0
26
27@ CHECK: vnmul.f64 d16, d17, d16     @ encoding: [0xe0,0x0b,0x61,0xee]
28        vnmul.f64       d16, d17, d16
29
30@ CHECK: vnmul.f32 s0, s1, s0        @ encoding: [0xc0,0x0a,0x20,0xee]
31        vnmul.f32       s0, s1, s0
32
33@ CHECK: vcmpe.f64 d17, d16          @ encoding: [0xe0,0x1b,0xf4,0xee]
34        vcmpe.f64       d17, d16
35
36@ CHECK: vcmpe.f32 s1, s0            @ encoding: [0xc0,0x0a,0xf4,0xee]
37        vcmpe.f32       s1, s0
38
39@ CHECK: vcmpe.f64 d16, #0           @ encoding: [0xc0,0x0b,0xf5,0xee]
40        vcmpe.f64       d16, #0
41
42@ CHECK: vcmpe.f32 s0, #0            @ encoding: [0xc0,0x0a,0xb5,0xee]
43        vcmpe.f32       s0, #0
44
45@ CHECK: vabs.f64 d16, d16           @ encoding: [0xe0,0x0b,0xf0,0xee]
46        vabs.f64        d16, d16
47
48@ CHECK: vabs.f32 s0, s0             @ encoding: [0xc0,0x0a,0xb0,0xee]
49        vabs.f32        s0, s0
50
51@ CHECK: vcvt.f32.f64 s0, d16        @ encoding: [0xe0,0x0b,0xb7,0xee]
52        vcvt.f32.f64    s0, d16
53
54@ CHECK: vcvt.f64.f32 d16, s0        @ encoding: [0xc0,0x0a,0xf7,0xee]
55        vcvt.f64.f32    d16, s0
56
57@ CHECK: vneg.f64 d16, d16           @ encoding: [0x60,0x0b,0xf1,0xee]
58        vneg.f64        d16, d16
59
60@ CHECK: vneg.f32 s0, s0             @ encoding: [0x40,0x0a,0xb1,0xee]
61        vneg.f32        s0, s0
62
63@ CHECK: vsqrt.f64 d16, d16          @ encoding: [0xe0,0x0b,0xf1,0xee]
64        vsqrt.f64       d16, d16
65
66@ CHECK: vsqrt.f32 s0, s0            @ encoding: [0xc0,0x0a,0xb1,0xee]
67        vsqrt.f32       s0, s0
68
69@ CHECK: vcvt.f64.s32 d16, s0        @ encoding: [0xc0,0x0b,0xf8,0xee]
70        vcvt.f64.s32    d16, s0
71
72@ CHECK: vcvt.f32.s32 s0, s0         @ encoding: [0xc0,0x0a,0xb8,0xee]
73        vcvt.f32.s32    s0, s0
74
75@ CHECK: vcvt.f64.u32 d16, s0        @ encoding: [0x40,0x0b,0xf8,0xee]
76        vcvt.f64.u32    d16, s0
77
78@ CHECK: vcvt.f32.u32 s0, s0         @ encoding: [0x40,0x0a,0xb8,0xee]
79        vcvt.f32.u32    s0, s0
80
81@ CHECK: vcvt.s32.f64 s0, d16        @ encoding: [0xe0,0x0b,0xbd,0xee]
82        vcvt.s32.f64    s0, d16
83
84@ CHECK: vcvt.s32.f32 s0, s0         @ encoding: [0xc0,0x0a,0xbd,0xee]
85        vcvt.s32.f32    s0, s0
86
87@ CHECK: vcvt.u32.f64 s0, d16        @ encoding: [0xe0,0x0b,0xbc,0xee]
88        vcvt.u32.f64    s0, d16
89
90@ CHECK: vcvt.u32.f32 s0, s0         @ encoding: [0xc0,0x0a,0xbc,0xee]
91        vcvt.u32.f32    s0, s0
92
93@ CHECK: vmla.f64 d16, d18, d17      @ encoding: [0xa1,0x0b,0x42,0xee]
94        vmla.f64        d16, d18, d17
95
96@ CHECK: vmla.f32 s1, s2, s0         @ encoding: [0x00,0x0a,0x41,0xee]
97        vmla.f32        s1, s2, s0
98
99@ CHECK: vmls.f64 d16, d18, d17      @ encoding: [0xe1,0x0b,0x42,0xee]
100        vmls.f64        d16, d18, d17
101
102@ CHECK: vmls.f32 s1, s2, s0         @ encoding: [0x40,0x0a,0x41,0xee]
103        vmls.f32        s1, s2, s0
104
105@ CHECK: vnmla.f64 d16, d18, d17     @ encoding: [0xe1,0x0b,0x52,0xee]
106        vnmla.f64       d16, d18, d17
107
108@ CHECK: vnmla.f32 s1, s2, s0        @ encoding: [0x40,0x0a,0x51,0xee]
109        vnmla.f32       s1, s2, s0
110
111@ CHECK: vnmls.f64 d16, d18, d17     @ encoding: [0xa1,0x0b,0x52,0xee]
112        vnmls.f64       d16, d18, d17
113
114@ CHECK: vnmls.f32 s1, s2, s0        @ encoding: [0x00,0x0a,0x51,0xee]
115        vnmls.f32       s1, s2, s0
116
117@ CHECK: vmrs apsr_nzcv, fpscr       @ encoding: [0x10,0xfa,0xf1,0xee]
118@ CHECK: vmrs apsr_nzcv, fpscr       @ encoding: [0x10,0xfa,0xf1,0xee]
119        vmrs    apsr_nzcv, fpscr
120        fmstat
121
122@ CHECK: vnegne.f64 d16, d16         @ encoding: [0x60,0x0b,0xf1,0x1e]
123        vnegne.f64      d16, d16
124
125@ CHECK: vmovne s0, r0               @ encoding: [0x10,0x0a,0x00,0x1e]
126@ CHECK: vmoveq s0, r1               @ encoding: [0x10,0x1a,0x00,0x0e]
127        vmovne  s0, r0
128        vmoveq  s0, r1
129
130@ CHECK: vmrs r0, fpscr              @ encoding: [0x10,0x0a,0xf1,0xee]
131        vmrs    r0, fpscr
132@ CHECK: vmrs  r0, fpexc             @ encoding: [0x10,0x0a,0xf8,0xee]
133        vmrs  r0, fpexc
134@ CHECK: vmrs  r0, fpsid             @ encoding: [0x10,0x0a,0xf0,0xee]
135        vmrs  r0, fpsid
136
137@ CHECK: vmsr fpscr, r0              @ encoding: [0x10,0x0a,0xe1,0xee]
138        vmsr    fpscr, r0
139@ CHECK: vmsr  fpexc, r0             @ encoding: [0x10,0x0a,0xe8,0xee]
140        vmsr  fpexc, r0
141@ CHECK: vmsr  fpsid, r0             @ encoding: [0x10,0x0a,0xe0,0xee]
142        vmsr  fpsid, r0
143
144        vmov.f64        d16, #3.000000e+00
145        vmov.f32        s0, #3.000000e+00
146        vmov.f64        d16, #-3.000000e+00
147        vmov.f32        s0, #-3.000000e+00
148
149@ CHECK: vmov.f64 d16, #3.000000e+00 @ encoding: [0x08,0x0b,0xf0,0xee]
150@ CHECK: vmov.f32 s0, #3.000000e+00  @ encoding: [0x08,0x0a,0xb0,0xee]
151@ CHECK: vmov.f64 d16, #-3.000000e+00 @ encoding: [0x08,0x0b,0xf8,0xee]
152@ CHECK: vmov.f32 s0, #-3.000000e+00  @ encoding: [0x08,0x0a,0xb8,0xee]
153
154@ CHECK: vmov s0, r0                 @ encoding: [0x10,0x0a,0x00,0xee]
155@ CHECK: vmov s1, r1                 @ encoding: [0x90,0x1a,0x00,0xee]
156@ CHECK: vmov s2, r2                 @ encoding: [0x10,0x2a,0x01,0xee]
157@ CHECK: vmov s3, r3                 @ encoding: [0x90,0x3a,0x01,0xee]
158        vmov    s0, r0
159        vmov    s1, r1
160        vmov    s2, r2
161        vmov    s3, r3
162
163@ CHECK: vmov r0, s0                 @ encoding: [0x10,0x0a,0x10,0xee]
164@ CHECK: vmov r1, s1                 @ encoding: [0x90,0x1a,0x10,0xee]
165@ CHECK: vmov r2, s2                 @ encoding: [0x10,0x2a,0x11,0xee]
166@ CHECK: vmov r3, s3                 @ encoding: [0x90,0x3a,0x11,0xee]
167        vmov    r0, s0
168        vmov    r1, s1
169        vmov    r2, s2
170        vmov    r3, s3
171
172@ CHECK: vmov r0, r1, d16            @ encoding: [0x30,0x0b,0x51,0xec]
173        vmov    r0, r1, d16
174
175@ CHECK: vldr.64 d17, [r0]           @ encoding: [0x00,0x1b,0xd0,0xed]
176        vldr.64	d17, [r0]
177
178@ CHECK: vldr.64 d1, [r2, #32]       @ encoding: [0x08,0x1b,0x92,0xed]
179@ CHECK: vldr.64 d1, [r2, #-32]      @ encoding: [0x08,0x1b,0x12,0xed]
180        vldr.64	d1, [r2, #32]
181        vldr.64	d1, [r2, #-32]
182
183@ CHECK: vldr.64 d2, [r3]            @ encoding: [0x00,0x2b,0x93,0xed]
184        vldr.64 d2, [r3]
185
186@ CHECK: vldr.64 d3, [pc]            @ encoding: [0x00,0x3b,0x9f,0xed]
187@ CHECK: vldr.64 d3, [pc]            @ encoding: [0x00,0x3b,0x9f,0xed]
188@ CHECK: vldr.64 d3, [pc, #-0]            @ encoding: [0x00,0x3b,0x1f,0xed]
189        vldr.64 d3, [pc]
190        vldr.64 d3, [pc,#0]
191        vldr.64 d3, [pc,#-0]
192
193@ CHECK: vldr.32 s13, [r0]           @ encoding: [0x00,0x6a,0xd0,0xed]
194        vldr.32	s13, [r0]
195
196@ CHECK: vldr.32 s1, [r2, #32]       @ encoding: [0x08,0x0a,0xd2,0xed]
197@ CHECK: vldr.32 s1, [r2, #-32]      @ encoding: [0x08,0x0a,0x52,0xed]
198        vldr.32	s1, [r2, #32]
199        vldr.32	s1, [r2, #-32]
200
201@ CHECK: vldr.32 s2, [r3]            @ encoding: [0x00,0x1a,0x93,0xed]
202        vldr.32 s2, [r3]
203
204@ CHECK: vldr.32 s5, [pc]            @ encoding: [0x00,0x2a,0xdf,0xed]
205@ CHECK: vldr.32 s5, [pc]            @ encoding: [0x00,0x2a,0xdf,0xed]
206@ CHECK: vldr.32 s5, [pc, #-0]            @ encoding: [0x00,0x2a,0x5f,0xed]
207        vldr.32 s5, [pc]
208        vldr.32 s5, [pc,#0]
209        vldr.32 s5, [pc,#-0]
210
211@ CHECK: vstr.64 d4, [r1]            @ encoding: [0x00,0x4b,0x81,0xed]
212@ CHECK: vstr.64 d4, [r1, #24]       @ encoding: [0x06,0x4b,0x81,0xed]
213@ CHECK: vstr.64 d4, [r1, #-24]      @ encoding: [0x06,0x4b,0x01,0xed]
214        vstr.64 d4, [r1]
215        vstr.64 d4, [r1, #24]
216        vstr.64 d4, [r1, #-24]
217
218@ CHECK: vstr.32 s4, [r1]            @ encoding: [0x00,0x2a,0x81,0xed]
219@ CHECK: vstr.32 s4, [r1, #24]       @ encoding: [0x06,0x2a,0x81,0xed]
220@ CHECK: vstr.32 s4, [r1, #-24]      @ encoding: [0x06,0x2a,0x01,0xed]
221        vstr.32 s4, [r1]
222        vstr.32 s4, [r1, #24]
223        vstr.32 s4, [r1, #-24]
224
225@ CHECK: vldmia r1, {d2, d3, d4, d5, d6, d7} @ encoding: [0x0c,0x2b,0x91,0xec]
226@ CHECK: vldmia r1, {s2, s3, s4, s5, s6, s7} @ encoding: [0x06,0x1a,0x91,0xec]
227        vldmia  r1, {d2,d3-d6,d7}
228        vldmia  r1, {s2,s3-s6,s7}
229
230@ CHECK: vstmia r1, {d2, d3, d4, d5, d6, d7} @ encoding: [0x0c,0x2b,0x81,0xec]
231@ CHECK: vstmia	r1, {s2, s3, s4, s5, s6, s7} @ encoding: [0x06,0x1a,0x81,0xec]
232        vstmia  r1, {d2,d3-d6,d7}
233        vstmia  r1, {s2,s3-s6,s7}
234
235@ CHECK: vcvtr.s32.f64  s0, d0 @ encoding: [0x40,0x0b,0xbd,0xee]
236@ CHECK: vcvtr.s32.f32  s0, s1 @ encoding: [0x60,0x0a,0xbd,0xee]
237@ CHECK: vcvtr.u32.f64  s0, d0 @ encoding: [0x40,0x0b,0xbc,0xee]
238@ CHECK: vcvtr.u32.f32  s0, s1 @ encoding: [0x60,0x0a,0xbc,0xee]
239        vcvtr.s32.f64  s0, d0
240        vcvtr.s32.f32  s0, s1
241        vcvtr.u32.f64  s0, d0
242        vcvtr.u32.f32  s0, s1
243
244@ CHECK: vmovne	s25, s26, r2, r5
245        vmovne	s25, s26, r2, r5        @ encoding: [0x39,0x2a,0x45,0x1c]
246