[RISCV] Allow call pseudoinstruction to be used to call a function name that coincide...
authorAlex Bradbury <asb@lowrisc.org>
Wed, 25 Apr 2018 17:25:29 +0000 (17:25 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Wed, 25 Apr 2018 17:25:29 +0000 (17:25 +0000)
commitcd8688a4c26540c4d03e5f1ac6566e7cd29bddc5
tree8d1e9f360c21ca17894111dd1574ddb3ac42f622
parent39d61944df1a2f975b51a05249bd0082ffbf7f49
[RISCV] Allow call pseudoinstruction to be used to call a function name that coincides with a register name

Previously `call zero`, `call f0` etc would fail. This leads to compilation
failures if building programs that define functions with those names and using
-save-temps.

llvm-svn: 330846
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/test/MC/RISCV/function-call.s