[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / mve-vpt.s
blobd93e29ddbf308b8ac44c3f2745b3cd808af536a8
1 # RUN: not llvm-mc -triple=thumbv8.1m.main-none-eabi -mattr=+mve -show-encoding < %s \
2 # RUN: | FileCheck --check-prefix=CHECK-NOFP %s
3 # RUN: not llvm-mc -triple=thumbv8.1m.main-none-eabi -mattr=+mve.fp,+fp64 -show-encoding < %s 2>%t \
4 # RUN: | FileCheck --check-prefix=CHECK %s
5 # RUN: FileCheck --check-prefix=ERROR < %t %s
7 # ERROR: [[@LINE+1]]:{{[0-9]+}}: {{error|note}}: VPT predicated instructions must be in VPT block
8 vabavt.s32 lr, q1, q3
10 # ERROR: [[@LINE+1]]:{{[0-9]+}}: {{error|note}}: VPT predicated instructions must be in VPT block
11 vabave.u8 r12, q1, q3
13 # ERROR: [[@LINE+2]]:{{[0-9]+}}: {{error|note}}: instructions in IT block must be predicable
14 it eq
15 vabav.s16 lr, q1, q3
17 # CHECK: vpteee.i8 eq, q0, q1 @ encoding: [0x41,0xfe,0x02,0x2f]
18 # CHECK-NOFP: vpteee.i8 eq, q0, q1 @ encoding: [0x41,0xfe,0x02,0x2f]
19 vpteee.i8 eq, q0, q1
20 vabavt.s32 lr, q1, q3
21 vabave.s32 lr, q1, q3
22 vabave.s32 lr, q1, q3
23 vabave.s32 lr, q1, q3
25 # CHECK: vptttt.s32 gt, q0, q1 @ encoding: [0x21,0xfe,0x03,0x3f]
26 # CHECK-NOFP: vptttt.s32 gt, q0, q1 @ encoding: [0x21,0xfe,0x03,0x3f]
27 vptttt.s32 gt, q0, q1
28 vabavt.u32 lr, q1, q3
29 vabavt.s32 lr, q1, q3
30 vabavt.s16 lr, q1, q3
31 vabavt.s8 lr, q1, q3
33 # ERROR: [[@LINE+2]]:{{[0-9]+}}: {{error|note}}: instruction in VPT block must be predicable
34 vpt.s8 le, q0, q1
35 cinc lr, r2, lo
37 # ----------------------------------------------------------------------
38 # The following tests have to go last because of the NOFP-NOT checks inside the
39 # VPT block.
41 # CHECK: vptete.f16 ne, q0, q1 @ encoding: [0x71,0xfe,0x82,0xef]
42 # CHECK-NOFP-NOT: vptete.f16 ne, q0, q1 @ encoding: [0x71,0xfe,0x82,0xef]
43 vptete.f16 ne, q0, q1
44 vabavt.s32 lr, q1, q3
45 vabave.u32 lr, q1, q3
46 vabavt.s32 lr, q1, q3
47 vabave.s16 lr, q1, q3
48 # ERROR: [[@LINE+1]]:{{[0-9]+}}: {{error|note}}: VPT predicated instructions must be in VPT block
49 vabavt.s32 lr, q1, q3
51 # CHECK: vpte.i8 eq, q0, q0
52 # CHECK: vmaxnmt.f16 q1, q6, q2 @ encoding: [0x1c,0xff,0x54,0x2f]
53 # CHECK-NOFP-NOT: vmaxnmt.f16 q1, q6, q2 @ encoding: [0x1c,0xff,0x54,0x2f]
54 # CHECK-NOFP-NOT: vmaxnme.f16 q1, q6, q2 @ encoding: [0x1c,0xff,0x54,0x2f]
55 vpte.i8 eq, q0, q0
56 vmaxnmt.f16 q1, q6, q2
57 vmaxnme.f16 q1, q6, q2