47 lines · plain
1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p2 2>&1 < %s| FileCheck %s2 3// --------------------------------------------------------------------------//4// Invalid element width5 6ursqrte z31.b, p7/z, z31.b7// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width8// CHECK-NEXT: ursqrte z31.b, p7/z, z31.b9// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:10 11ursqrte z31.h, p7/z, z31.h12// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width13// CHECK-NEXT: ursqrte z31.h, p7/z, z31.h14// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:15 16ursqrte z31.s, p7/z, z31.h17// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width18// CHECK-NEXT: ursqrte z31.s, p7/z, z31.h19// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:20 21ursqrte z31.d, p7/z, z31.d22// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width23// CHECK-NEXT: ursqrte z31.d, p7/z, z31.d24// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:25 26// ------------------------------------------------------------------------- //27// Invalid predicate28 29ursqrte z0.s, p8/z, z0.s30// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)31// CHECK-NEXT: ursqrte z0.s, p8/z, z0.s32// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:33 34// --------------------------------------------------------------------------//35// Negative tests for instructions that are incompatible with movprfx36 37movprfx z0.s, p0/z, z7.s38ursqrte z0.s, p0/z, z3.s39// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov40// CHECK-NEXT: ursqrte z0.s, p0/z, z3.s41// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:42 43movprfx z0, z744ursqrte z0.s, p0/z, z3.s45// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov46// CHECK-NEXT: ursqrte z0.s, p0/z, z3.s47// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: