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.
Paths
| Differential D51731
[RISCV][MC] Tighten up checking of sybol operands to lui and auipc ClosedPublic Authored by asb on Sep 6 2018, 6:47 AM.
Details Summary 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.
Diff Detail Event TimelineHerald added subscribers: jocewei, PkmX, rkruppe and 14 others. · View Herald TranscriptSep 6 2018, 6:47 AM Closed by commit rL342486: [RISCV][MC] Tighten up checking of sybol operands to lui and auipc (authored by asb). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 164204 lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/RISCVInstrInfo.td
test/MC/RISCV/rv32i-invalid.s
test/MC/RISCV/rv32i-valid.s
|