[PATCH] D135960: [RISCV] Allow LI with symbol difference as constant

Job Noorman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 06:35:41 PST 2023


jobnoorman updated this revision to Diff 495827.
jobnoorman added a comment.

Address comments:

- Remove setting location of generated `addi`
- Mask high bits of fixup value
- Add test for error case


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135960/new/

https://reviews.llvm.org/D135960

Files:
  llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVFixupKinds.h
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
  llvm/test/MC/RISCV/fixups-invalid.s
  llvm/test/MC/RISCV/rv32i-aliases-valid.s
  llvm/test/MC/RISCV/rv64i-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135960.495827.patch
Type: text/x-patch
Size: 7278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230208/177092fc/attachment.bin>


More information about the llvm-commits mailing list