[PATCH] D51731: [RISCV][MC] Tighten up checking of sybol operands to lui and auipc
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 06:47:42 PDT 2018
asb created this revision.
asb added a reviewer: apazos.
Herald added subscribers: jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar.
Reject bare symbols and accept only %pcrel_hi(sym) for auipc and %hi(sym) for lui. Also test valid operand modifiers in rv32i-valid.s.
Note this is slightly stricter than gas, which will accept either %pcrel_hi or %hi for both lui and auipc.
https://reviews.llvm.org/D51731
Files:
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/RISCVInstrInfo.td
test/MC/RISCV/rv32i-invalid.s
test/MC/RISCV/rv32i-valid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51731.164204.patch
Type: text/x-patch
Size: 8434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180906/c7ed88ff/attachment.bin>
More information about the llvm-commits
mailing list