1# RUN: llvm-mc -disassemble -triple thumbv8a-none-eabi -mattr=+fullfp16,+thumb-mode -show-encoding < %s | FileCheck %s
2
3# CHECK:        vadd.f16  s0, s1, s0
4[0x30,0xee,0x80,0x09]
5
6# CHECK:        vsub.f16  s0, s1, s0
7[0x30,0xee,0xc0,0x09]
8
9# CHECK:        vdiv.f16  s0, s1, s0
10[0x80,0xee,0x80,0x09]
11
12# CHECK:        vmul.f16  s0, s1, s0
13[0x20,0xee,0x80,0x09]
14
15# CHECK:        vnmul.f16       s0, s1, s0
16[0x20,0xee,0xc0,0x09]
17
18# CHECK:        vmla.f16        s1, s2, s0
19[0x41,0xee,0x00,0x09]
20
21# CHECK:        vmls.f16        s1, s2, s0
22[0x41,0xee,0x40,0x09]
23
24# CHECK:        vnmla.f16       s1, s2, s0
25[0x51,0xee,0x40,0x09]
26
27# CHECK:        vnmls.f16       s1, s2, s0
28[0x51,0xee,0x00,0x09]
29
30# CHECK:        vcmp.f16 s0, s1
31[0xb4,0xee,0x60,0x09]
32
33# CHECK:        vcmp.f16 s2, #0
34[0xb5,0xee,0x40,0x19]
35
36# CHECK:        vcmpe.f16       s1, s0
37[0xf4,0xee,0xc0,0x09]
38
39# CHECK:        vcmpe.f16       s0, #0
40[0xb5,0xee,0xc0,0x09]
41
42# CHECK:        vabs.f16        s0, s0
43[0xb0,0xee,0xc0,0x09]
44
45# CHECK:        vneg.f16        s0, s0
46[0xb1,0xee,0x40,0x09]
47
48# CHECK:        vsqrt.f16       s0, s0
49[0xb1,0xee,0xc0,0x09]
50
51# CHECK:        vcvt.f16.s32    s0, s0
52# CHECK:        vcvt.f16.u32    s0, s0
53# CHECK:        vcvt.s32.f16    s0, s0
54# CHECK:        vcvt.u32.f16    s0, s0
55[0xb8,0xee,0xc0,0x09]
56[0xb8,0xee,0x40,0x09]
57[0xbd,0xee,0xc0,0x09]
58[0xbc,0xee,0xc0,0x09]
59
60# CHECK:        vcvtr.s32.f16  s0, s1
61# CHECK:        vcvtr.u32.f16  s0, s1
62[0xbd,0xee,0x60,0x09]
63[0xbc,0xee,0x60,0x09]
64
65# CHECK:        vcvt.f16.u32 s0, s0, #20
66# CHECK:        vcvt.f16.u16 s0, s0, #1
67# CHECK:        vcvt.f16.s32 s1, s1, #20
68# CHECK:        vcvt.f16.s16 s17, s17, #1
69# CHECK:        vcvt.u32.f16 s12, s12, #20
70# CHECK:        vcvt.u16.f16 s28, s28, #1
71# CHECK:        vcvt.s32.f16 s1, s1, #20
72# CHECK:        vcvt.s16.f16 s17, s17, #1
73[0xbb,0xee,0xc6,0x09]
74[0xbb,0xee,0x67,0x09]
75[0xfa,0xee,0xc6,0x09]
76[0xfa,0xee,0x67,0x89]
77[0xbf,0xee,0xc6,0x69]
78[0xbf,0xee,0x67,0xe9]
79[0xfe,0xee,0xc6,0x09]
80[0xfe,0xee,0x67,0x89]
81
82# CHECK: vcvta.s32.f16 s2, s3
83[0xbc,0xfe,0xe1,0x19]
84
85# CHECK: vcvtn.s32.f16 s6, s23
86[0xbd,0xfe,0xeb,0x39]
87
88# CHECK: vcvtp.s32.f16 s0, s4
89[0xbe,0xfe,0xc2,0x09]
90
91# CHECK: vcvtm.s32.f16 s17, s8
92[0xff,0xfe,0xc4,0x89]
93
94# CHECK: vcvta.u32.f16 s2, s3
95[0xbc,0xfe,0x61,0x19]
96
97# CHECK: vcvtn.u32.f16 s6, s23
98[0xbd,0xfe,0x6b,0x39]
99
100# CHECK: vcvtp.u32.f16 s0, s4
101[0xbe,0xfe,0x42,0x09]
102
103# CHECK: vcvtm.u32.f16 s17, s8
104[0xff,0xfe,0x44,0x89]
105
106# CHECK: vselge.f16 s4, s1, s23
107[0x20,0xfe,0xab,0x29]
108
109# CHECK: vselgt.f16 s0, s1, s0
110[0x30,0xfe,0x80,0x09]
111
112# CHECK: vseleq.f16 s30, s28, s23
113[0x0e,0xfe,0x2b,0xf9]
114
115# CHECK: vselvs.f16 s21, s16, s14
116[0x58,0xfe,0x07,0xa9]
117
118# CHECK: vmaxnm.f16 s5, s12, s0
119[0xc6,0xfe,0x00,0x29]
120
121# CHECK: vminnm.f16 s0, s0, s12
122[0x80,0xfe,0x46,0x09]
123
124# CHECK: vrintz.f16 s3, s24
125[0xf6,0xee,0xcc,0x19]
126
127# CHECK: vrintr.f16 s0, s9
128[0xb6,0xee,0x64,0x09]
129
130# CHECK: vrintx.f16 s10, s14
131[0xb7,0xee,0x47,0x59]
132
133# CHECK: vrinta.f16 s12, s1
134[0xb8,0xfe,0x60,0x69]
135
136# CHECK: vrintn.f16 s12, s1
137[0xb9,0xfe,0x60,0x69]
138
139# CHECK: vrintp.f16 s12, s1
140[0xba,0xfe,0x60,0x69]
141
142# CHECK: vrintm.f16 s12, s1
143[0xbb,0xfe,0x60,0x69]
144
145# CHECK: vfma.f16 s2, s7, s4
146[0xa3,0xee,0x82,0x19]
147
148# CHECK: vfms.f16 s2, s7, s4
149[0xa3,0xee,0xc2,0x19]
150
151# CHECK: vfnma.f16 s2, s7, s4
152[0x93,0xee,0xc2,0x19]
153
154# CHECK: vfnms.f16 s2, s7, s4
155[0x93,0xee,0x82,0x19]
156
157# CHECK: vmovx.f16 s2, s5
158# CHECK: vins.f16 s2, s5
159[0xb0,0xfe,0x62,0x1a]
160[0xb0,0xfe,0xe2,0x1a]
161
162# CHECK: vldr.16 s1, [pc, #6]
163# CHECK: vldr.16 s2, [pc, #510]
164# CHECK: vldr.16 s3, [pc, #-510]
165# CHECK: vldr.16 s4, [r4, #-18]
166[0xdf,0xed,0x03,0x09]
167[0x9f,0xed,0xff,0x19]
168[0x5f,0xed,0xff,0x19]
169[0x14,0xed,0x09,0x29]
170
171# CHECK: vstr.16 s1, [pc, #6]
172# CHECK: vstr.16 s2, [pc, #510]
173# CHECK: vstr.16 s3, [pc, #-510]
174# CHECK: vstr.16 s4, [r4, #-18]
175[0xcf,0xed,0x03,0x09]
176[0x8f,0xed,0xff,0x19]
177[0x4f,0xed,0xff,0x19]
178[0x04,0xed,0x09,0x29]
179
180# CHECK: vmov.f16 s0, #1.0
181[0xb7,0xee,0x00,0x09]
182
183# CHECK: vmov.f16 s1, r2
184# CHECK: vmov.f16 r3, s4
185[0x00,0xee,0x90,0x29]
186[0x12,0xee,0x10,0x39]
187