OSDN Git Service

[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)
commita40de1884c10929b523e9919b0da04db44f8cfc2
treea8c8bf17670c120f3fc483d6e94ce79e0daac1b4
parent74188ea645ff546e35873235cb67e4dd32dbe017
[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

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