1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s 2 3uqshl z0.b, p0/m, z0.b, #-1 4// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 7] 5// CHECK-NEXT: uqshl z0.b, p0/m, z0.b, #-1 6// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 7 8uqshl z0.b, p0/m, z0.b, #8 9// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 7] 10// CHECK-NEXT: uqshl z0.b, p0/m, z0.b, #8 11// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 12 13uqshl z0.h, p0/m, z0.h, #-1 14// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 15] 15// CHECK-NEXT: uqshl z0.h, p0/m, z0.h, #-1 16// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 17 18uqshl z0.h, p0/m, z0.h, #16 19// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 15] 20// CHECK-NEXT: uqshl z0.h, p0/m, z0.h, #16 21// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 22 23uqshl z0.s, p0/m, z0.s, #-1 24// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 31] 25// CHECK-NEXT: uqshl z0.s, p0/m, z0.s, #-1 26// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 27 28uqshl z0.s, p0/m, z0.s, #32 29// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 31] 30// CHECK-NEXT: uqshl z0.s, p0/m, z0.s, #32 31// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 32 33uqshl z0.d, p0/m, z0.d, #-1 34// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 63] 35// CHECK-NEXT: uqshl z0.d, p0/m, z0.d, #-1 36// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 37 38uqshl z0.d, p0/m, z0.d, #64 39// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 63] 40// CHECK-NEXT: uqshl z0.d, p0/m, z0.d, #64 41// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 42 43 44// --------------------------------------------------------------------------// 45// Source and Destination Registers must match 46 47uqshl z0.b, p0/m, z1.b, z2.b 48// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must match destination register 49// CHECK-NEXT: uqshl z0.b, p0/m, z1.b, z2.b 50// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 51 52uqshl z0.b, p0/m, z1.b, #0 53// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must match destination register 54// CHECK-NEXT: uqshl z0.b, p0/m, z1.b, #0 55// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 56 57 58// --------------------------------------------------------------------------// 59// Element sizes must match 60 61uqshl z0.b, p0/m, z0.d, z1.d 62// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 63// CHECK-NEXT: uqshl z0.b, p0/m, z0.d, z1.d 64// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 65 66uqshl z0.b, p0/m, z0.b, z1.h 67// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 68// CHECK-NEXT: uqshl z0.b, p0/m, z0.b, z1.h 69// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 70 71uqshl z0.b, p0/m, z0.d, #0 72// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 73// CHECK-NEXT: uqshl z0.b, p0/m, z0.d, #0 74// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 75 76uqshl z0.d, p0/m, z0.b, #0 77// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 78// CHECK-NEXT: uqshl z0.d, p0/m, z0.b, #0 79// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 80 81 82// --------------------------------------------------------------------------// 83// Invalid predicate 84 85uqshl z0.b, p0/z, z0.b, z1.b 86// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction 87// CHECK-NEXT: uqshl z0.b, p0/z, z0.b, z1.b 88// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 89 90uqshl z0.b, p8/m, z0.b, z1.b 91// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) 92// CHECK-NEXT: uqshl z0.b, p8/m, z0.b, z1.b 93// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 94 95uqshl z0.b, p8/m, z0.b, #0 96// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) 97// CHECK-NEXT: uqshl z0.b, p8/m, z0.b, #0 98// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 99