[RISCV] Allow parsing immediates that use tilde & exclaim
authorLewis Revill <lewis.revill@embecosm.com>
Wed, 19 Jun 2019 10:27:24 +0000 (10:27 +0000)
committerLewis Revill <lewis.revill@embecosm.com>
Wed, 19 Jun 2019 10:27:24 +0000 (10:27 +0000)
commit18737e81eb59a0f0f3898b161f39559dbba6bb79
tree62f5415108b6461cf3565f0cb1a2c9a2194ef2c6
parent218aa0edb15979d419c8e21a5e55f46511cbd1aa
[RISCV] Allow parsing immediates that use tilde & exclaim

This patch allows immediates (and CSR alias immediates) which start with
a tilde token or an exclaim (!) token to be parsed as intended.

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

llvm-svn: 363783
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/test/MC/RISCV/rv32i-valid.s