"README.md" did not exist on "802cf52b91004059368bcd8388a0b533ef7b1d89"
[AArch64] Support expression results as immediate values in mov
Summary: This patch adds support of using the result of an expression as an immediate value. For example, 0: .skip 4 1: mov x0, 1b - 0b is assembled to mov x0, #4 Currently it does not support expressions requiring relocation unless explicitly specified. This fixes PR#45781. Reviewers: peter.smith, ostannard, efriedma Reviewed By: efriedma Subscribers: nickdesaulniers, llozano, manojgupta, efriedma, ostannard, kristof.beyls, hiraditya, danielkiss, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80028
Showing
- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 15 additions, 7 deletionsllvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
- llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp 19 additions, 7 deletionsllvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
- llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp 16 additions, 15 deletions.../lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp
- llvm/test/MC/AArch64/basic-a64-diagnostics.s 2 additions, 2 deletionsllvm/test/MC/AArch64/basic-a64-diagnostics.s
- llvm/test/MC/AArch64/mov-expr-as-immediate.s 16 additions, 0 deletionsllvm/test/MC/AArch64/mov-expr-as-immediate.s
- llvm/test/MC/AArch64/mov-expression-as-immediate.s 9 additions, 0 deletionsllvm/test/MC/AArch64/mov-expression-as-immediate.s
- llvm/test/MC/AArch64/mov-unsupported-expr-as-immediate.s 17 additions, 0 deletionsllvm/test/MC/AArch64/mov-unsupported-expr-as-immediate.s
Loading
Please register or sign in to comment