Commit 44b8574
authored
[AArch64] Fix movk parsing with an .equ operand (llvm#124428)
Prior to 5da8013, this code worked:
.equ p4_low_b0, 0x0000
movk x1, p4_low_b0, lsl 16
(The code above is from the isa-l project - I discovered this issue
while trying to compile it with clang 19 on MacOS on aarch64)
That commit fixed a different bug, but accidentally broke the case where
the second operand to movk is not a literal.
In 442f066, a fix was applied to handle
the case where the second operand is a value like "(Val) >> 16".
However, that didn't appear to fix the test case in this commit. In this
commit, we extend the change to handle the case where the second operand
is a identifier defined by .equ.
Fixes llvm#1244271 parent 6bb70a9 commit 44b8574
File tree
2 files changed
+8
-1
lines changed- llvm
- lib/Target/AArch64/AsmParser
- test/MC/AArch64
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5017 | 5017 | | |
5018 | 5018 | | |
5019 | 5019 | | |
5020 | | - | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
5021 | 5023 | | |
5022 | 5024 | | |
5023 | 5025 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
3350 | 3355 | | |
3351 | 3356 | | |
3352 | 3357 | | |
| |||
0 commit comments