1 # RUN: llvm-mc -disassemble -triple armv8a-none-eabi -mattr=+fullfp16 -show-encoding < %s | FileCheck %s
3 # CHECK: vadd.f16 s0, s1, s0
6 # CHECK: vsub.f16 s0, s1, s0
9 # CHECK: vdiv.f16 s0, s1, s0
12 # CHECK: vmul.f16 s0, s1, s0
15 # CHECK: vnmul.f16 s0, s1, s0
18 # CHECK: vmla.f16 s1, s2, s0
21 # CHECK: vmls.f16 s1, s2, s0
24 # CHECK: vnmla.f16 s1, s2, s0
27 # CHECK: vnmls.f16 s1, s2, s0
30 # CHECK: vcmp.f16 s0, s1
33 # CHECK: vcmp.f16 s2, #0
36 # CHECK: vcmpe.f16 s1, s0
39 # CHECK: vcmpe.f16 s0, #0
42 # CHECK: vabs.f16 s0, s0
45 # CHECK: vneg.f16 s0, s0
48 # CHECK: vsqrt.f16 s0, s0
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
60 # CHECK: vcvtr.s32.f16 s0, s1
61 # CHECK: vcvtr.u32.f16 s0, s1
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
82 # CHECK: vcvta.s32.f16 s2, s3
85 # CHECK: vcvtn.s32.f16 s6, s23
88 # CHECK: vcvtp.s32.f16 s0, s4
91 # CHECK: vcvtm.s32.f16 s17, s8
94 # CHECK: vcvta.u32.f16 s2, s3
97 # CHECK: vcvtn.u32.f16 s6, s23
100 # CHECK: vcvtp.u32.f16 s0, s4
101 [0x42,0x09,0xbe,0xfe]
103 # CHECK: vcvtm.u32.f16 s17, s8
104 [0x44,0x89,0xff,0xfe]
106 # CHECK: vselge.f16 s4, s1, s23
107 [0xab,0x29,0x20,0xfe]
109 # CHECK: vselgt.f16 s0, s1, s0
110 [0x80,0x09,0x30,0xfe]
112 # CHECK: vseleq.f16 s30, s28, s23
113 [0x2b,0xf9,0x0e,0xfe]
115 # CHECK: vselvs.f16 s21, s16, s14
116 [0x07,0xa9,0x58,0xfe]
118 # CHECK: vmaxnm.f16 s5, s12, s0
119 [0x00,0x29,0xc6,0xfe]
121 # CHECK: vminnm.f16 s0, s0, s12
122 [0x46,0x09,0x80,0xfe]
124 # CHECK: vrintz.f16 s3, s24
125 [0xcc,0x19,0xf6,0xee]
127 # CHECK: vrintr.f16 s0, s9
128 [0x64,0x09,0xb6,0xee]
130 # CHECK: vrintx.f16 s10, s14
131 [0x47,0x59,0xb7,0xee]
133 # CHECK: vrinta.f16 s12, s1
134 [0x60,0x69,0xb8,0xfe]
136 # CHECK: vrintn.f16 s12, s1
137 [0x60,0x69,0xb9,0xfe]
139 # CHECK: vrintp.f16 s12, s1
140 [0x60,0x69,0xba,0xfe]
142 # CHECK: vrintm.f16 s12, s1
143 [0x60,0x69,0xbb,0xfe]
145 # CHECK: vfma.f16 s2, s7, s4
146 [0x82,0x19,0xa3,0xee]
148 # CHECK: vfms.f16 s2, s7, s4
149 [0xc2,0x19,0xa3,0xee]
151 # CHECK: vfnma.f16 s2, s7, s4
152 [0xc2,0x19,0x93,0xee]
154 # CHECK: vfnms.f16 s2, s7, s4
155 [0x82,0x19,0x93,0xee]
157 # CHECK: vmovx.f16 s2, s5
158 # CHECK: vins.f16 s2, s5
159 [0x62,0x1a,0xb0,0xfe]
160 [0xe2,0x1a,0xb0,0xfe]
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 [0x03,0x09,0xdf,0xed]
167 [0xff,0x19,0x9f,0xed]
168 [0xff,0x19,0x5f,0xed]
169 [0x09,0x29,0x14,0xed]
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 [0x03,0x09,0xcf,0xed]
176 [0xff,0x19,0x8f,0xed]
177 [0xff,0x19,0x4f,0xed]
178 [0x09,0x29,0x04,0xed]
180 # CHECK: vmov.f16 s0, #1.0
181 [0x00,0x09,0xb7,0xee]
183 # CHECK: vmov.f16 s1, r2
184 # CHECK: vmov.f16 r3, s4
185 [0x90,0x29,0x00,0xee]
186 [0x10,0x39,0x12,0xee]