bolt/deps/llvm-18.1.8/llvm/test/MC/AArch64/SVE2p1/ptrue-diagnostics.s

19 lines
758 B
ArmAsm
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 2>&1 < %s | FileCheck %s
// --------------------------------------------------------------------------//
// Invalid use of predicate as counter register
ptrue pn7.b
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid predicate register, expected PN in range pn8..pn15 with element suffix.
// CHECK-NEXT: ptrue pn7.b
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
// --------------------------------------------------------------------------//
// Invalid use of predicate as counter without suffix
ptrue pn8
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid predicate register, expected PN in range pn8..pn15 with element suffix.
// CHECK-NEXT: ptrue pn8
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: