[all-commits] [llvm/llvm-project] ffa0a2: [AArch64][SME] Fix LDR and STR asm parser

CarolineConcatto via All-commits all-commits at lists.llvm.org
Thu Apr 6 04:05:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffa0a2ecd4c0042fb0fd8fc5d84bb92ddd3608a3
      https://github.com/llvm/llvm-project/commit/ffa0a2ecd4c0042fb0fd8fc5d84bb92ddd3608a3
  Author: Caroline Concatto <caroline.concatto at arm.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
    M llvm/test/MC/AArch64/SME/ldr-diagnostics.s
    M llvm/test/MC/AArch64/SME/str-diagnostics.s

  Log Message:
  -----------
  [AArch64][SME] Fix LDR and STR asm parser

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.

Reviewed By: david-arm

Differential Revision: https://reviews.llvm.org/D147617




More information about the All-commits mailing list