Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / fdot-diagnostics.s
blob7a68b92ba30e1741491b895973190f09855c889c
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid vector lane index
6 fdot z0.s, z0.h, z0.h[8]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 3].
8 // CHECK-NEXT: fdot z0.s, z0.h, z0.h[8]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 fdot z0.s, z0.h, z0.h[-1]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 3].
13 // CHECK-NEXT: fdot z0.s, z0.h, z0.h[-1]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid vector suffix
19 fdot z0.h, z0.s, z0.s
20 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
21 // CHECK-NEXT: fdot z0.h, z0.s, z0.s
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24 fdot z0.d, z0.h, z0.h[0]
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
26 // CHECK-NEXT: fdot z0.d, z0.h, z0.h[0]
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: