Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Fix movk parsing with an .equ operand (#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 #124427
- Loading branch information