Skip to content

Commit 76b53a0

Browse files
authored
[AArch64] (NFC) Fix test after loosening requirements for register renaming (#71634)
The landing of https://reviews.llvm.org/D88663 renders the existing stp-opt-with-renaming-undef-assert test useless because the picked register for renaming becomes q0 instead of q16.
1 parent 8c014e5 commit 76b53a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# assertion:
55
# "Rename register used between paired instruction, trashing the content".
66
#
7-
# The assertion was previously triggered because q16 is picked as renamable
8-
# register, which overlap with renamable undef d16 used by ZIP2 instruction.
7+
# The assertion was previously triggered because q0 is picked as renamable
8+
# register, which overlap with renamable undef d0 used by ZIP2 instruction.
99
# However, the content of an undef register is not used in meaningful way,
1010
# aarch64 load store optimizer should not throw an assertion if a renamable
1111
# register picked overlap with a renamable undef register.
@@ -20,7 +20,7 @@
2020
# CHECK-NEXT: $q0 = EXTv16i8 renamable $q23, renamable $q23, 8
2121
# CHECK-NEXT: renamable $q20 = EXTv16i8 renamable $q14, renamable $q14, 8
2222
# CHECK-NEXT: STRQui killed renamable $q20, $sp, 4 :: (store (s128))
23-
# CHECK-NEXT: renamable $d6 = ZIP2v8i8 renamable $d23, undef renamable $d16
23+
# CHECK-NEXT: renamable $d6 = ZIP2v8i8 renamable $d23, undef renamable $d0
2424
# CHECK-NEXT: STRDui killed renamable $d6, $sp, 11 :: (store (s64))
2525
# CHECK-NEXT: renamable $q6 = EXTv16i8 renamable $q13, renamable $q13, 8
2626
# CHECK-NEXT: STPQi killed renamable $q6, killed $q0, $sp, 6 :: (store (s128))
@@ -46,7 +46,7 @@ body: |
4646
STRQui killed renamable $q20, $sp, 7 :: (store (s128))
4747
renamable $q20 = EXTv16i8 renamable $q14, renamable $q14, 8
4848
STRQui killed renamable $q20, $sp, 4 :: (store (s128))
49-
renamable $d6 = ZIP2v8i8 renamable $d23, undef renamable $d16
49+
renamable $d6 = ZIP2v8i8 renamable $d23, undef renamable $d0
5050
STRDui killed renamable $d6, $sp, 11 :: (store (s64))
5151
renamable $q6 = EXTv16i8 renamable $q13, renamable $q13, 8
5252
STRQui killed renamable $q6, $sp, 6 :: (store (s128))

0 commit comments

Comments
 (0)