OSDN Git Service

[RISCV][MC] Reject bare symbols for the simm12 operand type
authorAlex Bradbury <asb@lowrisc.org>
Tue, 18 Sep 2018 15:13:29 +0000 (15:13 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 18 Sep 2018 15:13:29 +0000 (15:13 +0000)
commit0a7f06b65e21ffef69af6eeacdaf0f49c31093b6
tree2a5289c66bd1c2066f746c385cdaf1949cf1d866
parent3c958d8fea515e69063f78078be8251a1a11d602
[RISCV][MC] Reject bare symbols for the simm12 operand type

addi a0, a0, foo and lw a0, foo(a0) and similar are now rejected. An explicit
%lo and %pcrel_lo modifier is required. This matches gas behaviour.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342487 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
test/MC/RISCV/rv32d-invalid.s
test/MC/RISCV/rv32f-invalid.s
test/MC/RISCV/rv32i-invalid.s
test/MC/RISCV/rv32i-valid.s
test/MC/RISCV/rv64i-invalid.s