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