brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · d93e29d Raw
58 lines · plain
1# RUN: not llvm-mc -triple=thumbv8.1m.main-none-eabi -mattr=+mve -show-encoding  < %s \2# RUN:   | FileCheck --check-prefix=CHECK-NOFP %s3# 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 %s5# RUN:     FileCheck --check-prefix=ERROR < %t %s6 7# ERROR: [[@LINE+1]]:{{[0-9]+}}: {{error|note}}: VPT predicated instructions must be in VPT block8vabavt.s32 lr, q1, q39 10# ERROR: [[@LINE+1]]:{{[0-9]+}}: {{error|note}}: VPT predicated instructions must be in VPT block11vabave.u8 r12, q1, q312 13# ERROR: [[@LINE+2]]:{{[0-9]+}}: {{error|note}}: instructions in IT block must be predicable14it eq15vabav.s16 lr, q1, q316 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]19vpteee.i8 eq, q0, q120vabavt.s32 lr, q1, q321vabave.s32 lr, q1, q322vabave.s32 lr, q1, q323vabave.s32 lr, q1, q324 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]27vptttt.s32 gt, q0, q128vabavt.u32 lr, q1, q329vabavt.s32 lr, q1, q330vabavt.s16 lr, q1, q331vabavt.s8 lr, q1, q332 33# ERROR: [[@LINE+2]]:{{[0-9]+}}: {{error|note}}: instruction in VPT block must be predicable34vpt.s8 le, q0, q135cinc lr, r2, lo36 37# ----------------------------------------------------------------------38# The following tests have to go last because of the NOFP-NOT checks inside the39# VPT block.40 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]43vptete.f16 ne, q0, q144vabavt.s32 lr, q1, q345vabave.u32 lr, q1, q346vabavt.s32 lr, q1, q347vabave.s16 lr, q1, q348# ERROR: [[@LINE+1]]:{{[0-9]+}}: {{error|note}}: VPT predicated instructions must be in VPT block49vabavt.s32 lr, q1, q350 51# CHECK: vpte.i8 eq, q0, q052# 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]55vpte.i8 eq, q0, q056vmaxnmt.f16 q1, q6, q257vmaxnme.f16 q1, q6, q258