diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2019-03-17 12:00:58 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2019-03-17 12:00:58 +0000 |
| commit | b18e314a7cbdfb4b9f671170562041eebb04c20a (patch) | |
| tree | be1539ac67d5a171453dc4c558fac2ba92d76631 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp | |
| parent | 68b4673feaaf4c16653847db3259d706229178f4 (diff) | |
| download | bcm5719-llvm-b18e314a7cbdfb4b9f671170562041eebb04c20a.tar.gz bcm5719-llvm-b18e314a7cbdfb4b9f671170562041eebb04c20a.zip | |
[RISCV] Fix RISCVAsmParser::ParseRegister and add tests
RISCVAsmParser::ParseRegister is called from AsmParser::parseRegisterOrNumber,
which in turn is called when processing CFI directives. The RISC-V
implementation wasn't setting RegNo, and so was incorrect. This patch address
that and adds cfi directive tests that demonstrate the fix. A follow-up patch
will factor out the register parsing logic shared between ParseRegister and
parseRegister.
llvm-svn: 356329
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions

