Skip to content

Commit 71a2ed4

Browse files
committed
fixup! [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 LUTI6 operations
Add extra `luti6` tests that should be rejected
1 parent bec3cc6 commit 71a2ed4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/test/MC/AArch64/SME2p3/luti6-diagnostics.s

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,26 @@ luti6 { z0.b - z3.b }, zt0, { z1 - z1 }
117117
// CHECK-NEXT: luti6 { z0.b - z3.b }, zt0, { z1 - z1 }
118118
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
119119

120+
luti6 { z0.b - z5.b }, zt0, { z7 - z11 }
121+
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid number of vectors
122+
// CHECK-NEXT: luti6 { z0.b - z5.b }, zt0, { z7 - z11 }
123+
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
124+
120125
luti6 { z0.b - z3.b }, zt1, { z1 - z3 }
121126
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid lookup table, expected zt0
122127
// CHECK-NEXT: luti6 { z0.b - z3.b }, zt1, { z1 - z3 }
123128
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
124129

130+
luti6 { z4.b, z8.b, z12.b, z16.b}, zt0, { z2 - z5 }
131+
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
132+
// CHECK-NEXT: luti6 { z4.b, z8.b, z12.b, z16.b}, zt0, { z2 - z5 }
133+
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
134+
135+
luti6 { z17.b, z21.b, z25.b, z29.b}, zt0, { z2 - z5 }
136+
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
137+
// CHECK-NEXT: luti6 { z17.b, z21.b, z25.b, z29.b}, zt0, { z2 - z5 }
138+
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
139+
125140
// --------------------------------------------------------------------------//
126141
// Negative tests for instructions that are incompatible with movprfx
127142

0 commit comments

Comments
 (0)