Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / bfmax-diagnostics.s
blobf7e30713e7d520ad835e379bf4829795c2b7973d
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1,+b16b16 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid predicate register
6 bfmax z23.h, p8/m, z23.h, z13.h
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
8 // CHECK-NEXT: bfmax z23.h, p8/m, z23.h, z13.h
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 bfmax z23.h, p1/z, z23.h, z13.h
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
13 // CHECK-NEXT: bfmax z23.h, p1/z, z23.h, z13.h
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid vector suffix
19 bfmax z23.h, p1/z, z23.s, z13.s
20 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
21 // CHECK-NEXT: bfmax z23.h, p1/z, z23.s, z13.s
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24 bfmax z23.s, z23.h, z13.h
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
26 // CHECK-NEXT: bfmax z23.s, z23.h, z13.h
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: