[all-commits] [llvm/llvm-project] 1a715d: [RISCV] Support constant operand for la and lla ps...

garvit gupta via All-commits all-commits at lists.llvm.org
Mon Jul 3 15:55:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a715d9b33a12909fe08880548e2290c783326dd
      https://github.com/llvm/llvm-project/commit/1a715d9b33a12909fe08880548e2290c783326dd
  Author: Garvit Gupta <quic_garvgupt at quicinc.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.td
    R llvm/test/MC/RISCV/lla-invalid.s
    M llvm/test/MC/RISCV/rv32i-aliases-invalid.s
    M llvm/test/MC/RISCV/rv32i-aliases-valid.s
    M llvm/test/MC/RISCV/rv64i-aliases-invalid.s
    M llvm/test/MC/RISCV/rv64i-aliases-valid.s
    M llvm/test/MC/RISCV/rvi-pseudos-invalid.s

  Log Message:
  -----------
  [RISCV] Support constant operand for la and lla pseudoinstruction.

This patch improves compatibility with GNU assembler by adding support for
constant immediate in la and lla pseudo instruction, and expanding it in the
same way as we currently expands li pseudo instruction.

Links to discussion related to the above issue in the community -
https://github.com/riscv-non-isa/riscv-arch-test/issues/105
https://github.com/riscv-non-isa/riscv-arch-test/issues/108
https://github.com/riscv-non-isa/riscv-arch-test/issues/106

Reviewed By: craig.topper

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




More information about the All-commits mailing list