forked from OSchip/llvm-project
42 lines
1.5 KiB
ArmAsm
42 lines
1.5 KiB
ArmAsm
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
|
|
|
|
lsr z30.b, z10.b, #0
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 8]
|
|
// CHECK-NEXT: lsr z30.b, z10.b, #0
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z18.b, z27.b, #9
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 8]
|
|
// CHECK-NEXT: lsr z18.b, z27.b, #9
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z26.h, z4.h, #0
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
|
|
// CHECK-NEXT: lsr z26.h, z4.h, #0
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z25.h, z10.h, #17
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
|
|
// CHECK-NEXT: lsr z25.h, z10.h, #17
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z17.s, z0.s, #0
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 32]
|
|
// CHECK-NEXT: lsr z17.s, z0.s, #0
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z0.s, z15.s, #33
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 32]
|
|
// CHECK-NEXT: lsr z0.s, z15.s, #33
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z4.d, z13.d, #0
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64]
|
|
// CHECK-NEXT: lsr z4.d, z13.d, #0
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
lsr z26.d, z26.d, #65
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64]
|
|
// CHECK-NEXT: lsr z26.d, z26.d, #65
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|