The LDR and STR instructions must have the same value for imm4(second operand)
and offset(fourth operand).
The disassembly guarantees that happens, but the Asm parser was not checking that.
This patch fixes that by checking if the second operand and fourth operand are
immediate and have the same value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice fix @CarolineConcatto! Just one minor comment ...
llvm/test/MC/AArch64/SME/ldr-diagnostics.s | ||
---|---|---|
56 | If it's not too much trouble, could you also add a similar test for str as well? |
llvm/test/MC/AArch64/SME/ldr-diagnostics.s | ||
---|---|---|
56 | Sorry, I totally missed that. Now it is done |
If it's not too much trouble, could you also add a similar test for str as well?