1 # RUN: llvm-mc -disassemble -triple thumbv8a-none-eabi -mattr=+fullfp16,+thumb-mode -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 [0xbe,0xfe,0x42,0x09]
103 # CHECK: vcvtm.u32.f16 s17, s8
104 [0xff,0xfe,0x44,0x89]
106 # CHECK: vselge.f16 s4, s1, s23
107 [0x20,0xfe,0xab,0x29]
109 # CHECK: vselgt.f16 s0, s1, s0
110 [0x30,0xfe,0x80,0x09]
112 # CHECK: vseleq.f16 s30, s28, s23
113 [0x0e,0xfe,0x2b,0xf9]
115 # CHECK: vselvs.f16 s21, s16, s14
116 [0x58,0xfe,0x07,0xa9]
118 # CHECK: vmaxnm.f16 s5, s12, s0
119 [0xc6,0xfe,0x00,0x29]
121 # CHECK: vminnm.f16 s0, s0, s12
122 [0x80,0xfe,0x46,0x09]
124 # CHECK: vrintz.f16 s3, s24
125 [0xf6,0xee,0xcc,0x19]
127 # CHECK: vrintr.f16 s0, s9
128 [0xb6,0xee,0x64,0x09]
130 # CHECK: vrintx.f16 s10, s14
131 [0xb7,0xee,0x47,0x59]
133 # CHECK: vrinta.f16 s12, s1
134 [0xb8,0xfe,0x60,0x69]
136 # CHECK: vrintn.f16 s12, s1
137 [0xb9,0xfe,0x60,0x69]
139 # CHECK: vrintp.f16 s12, s1
140 [0xba,0xfe,0x60,0x69]
142 # CHECK: vrintm.f16 s12, s1
143 [0xbb,0xfe,0x60,0x69]
145 # CHECK: vfma.f16 s2, s7, s4
146 [0xa3,0xee,0x82,0x19]
148 # CHECK: vfms.f16 s2, s7, s4
149 [0xa3,0xee,0xc2,0x19]
151 # CHECK: vfnma.f16 s2, s7, s4
152 [0x93,0xee,0xc2,0x19]
154 # CHECK: vfnms.f16 s2, s7, s4
155 [0x93,0xee,0x82,0x19]
157 # CHECK: vmovx.f16 s2, s5
158 # CHECK: vins.f16 s2, s5
159 [0xb0,0xfe,0x62,0x1a]
160 [0xb0,0xfe,0xe2,0x1a]
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]
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]
180 # CHECK: vmov.f16 s0, #1.0
181 [0xb7,0xee,0x00,0x09]
183 # CHECK: vmov.f16 s1, r2
184 # CHECK: vmov.f16 r3, s4
185 [0x00,0xee,0x90,0x29]
186 [0x12,0xee,0x10,0x39]