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