[llvm] Add Addend Checks for MOVT and MOVW instructions. (PR #111970)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 02:40:20 PDT 2024
================
@@ -446,6 +447,16 @@ unsigned ARMAsmBackend::adjustFixupValue(const MCAssembler &Asm,
const MCSubtargetInfo* STI) const {
unsigned Kind = Fixup.getKind();
+ // For MOVW/MOVT Instructions, the Fixup Value needs to be 16 bit aligned.
+ // If this is not the case, we should reject compilation.
----------------
DavidSpickett wrote:
Second sentence seems redundant especially if you rephrase the first to:
```
// For MOVW/MOVT instructions, the fixup value must already be be 16-bit aligned.
```
https://github.com/llvm/llvm-project/pull/111970
More information about the llvm-commits
mailing list