[all-commits] [llvm/llvm-project] e27e3b: [RISCVAsmParser] Allow a SymbolRef operand to be a...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Dec 1 16:08:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e27e3ba9c9d8e3f25d4b03a71cdb6b47cbff2c8b
      https://github.com/llvm/llvm-project/commit/e27e3ba9c9d8e3f25d4b03a71cdb6b47cbff2c8b
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/test/MC/RISCV/rvi-pseudos-invalid.s
    M llvm/test/MC/RISCV/rvi-pseudos.s

  Log Message:
  -----------
  [RISCVAsmParser] Allow a SymbolRef operand to be a complex expression

So that instructions like `lla a5, (0xFF + end) - 4` (supported by GNU as) can
be parsed.

Add a missing test that an operand like `foo + foo` is not allowed.

Reviewed By: jrtc27

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




More information about the All-commits mailing list