1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s 2 3umin z0.b, z0.b, #-1 4// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 255]. 5// CHECK-NEXT: umin z0.b, z0.b, #-1 6// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 7 8umin z31.b, z31.b, #256 9// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 255]. 10// CHECK-NEXT: umin z31.b, z31.b, #256 11// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 12 13umin z0.b, p8/m, z0.b, z0.b 14// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) 15// CHECK-NEXT: umin z0.b, p8/m, z0.b, z0.b 16// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 17 18 19// --------------------------------------------------------------------------// 20// Negative tests for instructions that are incompatible with movprfx 21 22movprfx z31.b, p0/z, z6.b 23umin z31.b, z31.b, #255 24// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx, suggest using unpredicated movprfx 25// CHECK-NEXT: umin z31.b, z31.b, #255 26// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 27