Skip to content

Commit e08414c

Browse files
committed
fixup! [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 arithmetic operations
Use different source registers for instructions following `movprfx`
1 parent 2a4c9e6 commit e08414c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/MC/AArch64/SVE2p3/arithmetic-diagnostics.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ subp z0.b, p0/m, z1.b, z2.b
135135
// Negative tests for instructions that are incompatible with movprfx
136136

137137
movprfx z0, z7
138-
addqp z0.b, z0.b, z0.b
138+
addqp z0.b, z1.b, z2.b
139139
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
140-
// CHECK-NEXT: addqp z0.b, z0.b, z0.b
140+
// CHECK-NEXT: addqp z0.b, z1.b, z2.b
141141
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
142142

143143
movprfx z0, z7
144-
addsubp z0.b, z0.b, z0.b
144+
addsubp z0.b, z1.b, z2.b
145145
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
146-
// CHECK-NEXT: addsubp z0.b, z0.b, z0.b
146+
// CHECK-NEXT: addsubp z0.b, z1.b, z2.b
147147
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

0 commit comments

Comments
 (0)