[Xtensa] Move XtensaUtils to MCTargetDesc
[llvm-project.git] / llvm / test / MC / AArch64 / FP8_SME2 / movt-diagnostics.s
blobd3f334a3089b4378857c6d362f3f9e2800184632
2 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-lutv2 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid vector select register
5 movt z0, z31
6 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid lookup table, expected zt0
7 // CHECK-NEXT: movt z0, z31
8 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
9 // --------------------------------------------------------------------------//
10 // Invalid vector select offset
12 movt zt0[-1, mul vl], z31
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 3].
14 // CHECK-NEXT: movt zt0[-1, mul vl], z31
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 movt zt0[4, mul vl], z31
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 3].
18 // CHECK-NEXT: movt zt0[4, mul vl], z31
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
20 // --------------------------------------------------------------------------//
21 // Invalid mul vl
22 movt zt0[0, mul vl 3], z0
23 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: ']' expected
24 // CHECK-NEXT: movt zt0[0, mul vl 3], z0
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26 movt zt0[0, mul #4], z0
27 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
28 // CHECK-NEXT: movt zt0[0, mul #4], z0
29 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: