[all-commits] [llvm/llvm-project] 679029: [LoongArch] Modify ParserMethod for the simm26_b o...

wanglei via All-commits all-commits at lists.llvm.org
Fri Oct 21 02:02:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67902920628f889cdef402bb0e8ca7a3df51e25f
      https://github.com/llvm/llvm-project/commit/67902920628f889cdef402bb0e8ca7a3df51e25f
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    A llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll

  Log Message:
  -----------
  [LoongArch] Modify ParserMethod for the simm26_b operand type

Modify the ParserMethod of `simm26_b` operand type to `parseImmediate`.

Before that, for the `simm26_b` operand type, the same ParserMethod
was used as `simm26_bl`. When using the internal assembler to process
the blockaddress with `asm` instruction, the wrong blockaddress symbol
would be generated due to the call to the `getOrCreateSymbol()`
interface.

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




More information about the All-commits mailing list