OSDN Git Service

[RISCV] Mark FREM as Expand
authorAlex Bradbury <asb@lowrisc.org>
Thu, 15 Nov 2018 14:46:11 +0000 (14:46 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 15 Nov 2018 14:46:11 +0000 (14:46 +0000)
commitd566da724ad9c7b4f391ee61e51714e5d39cacad
tree204990fdbee74488efe83f768e67cb8d822e426c
parent5ba6366a246d3078fbb597f6aad41d100fa40bb2
[RISCV] Mark FREM as Expand

Mark the FREM SelectionDAG node as Expand, which is necessary in order to
support the frem IR instruction on RISC-V. This is expanded into a library
call. Adds the corresponding test. Previously, this would have triggered an
assertion at instruction selection time.

Differential Revision: https://reviews.llvm.org/D54159
Patch by Luís Marques.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346958 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVISelLowering.cpp
test/CodeGen/RISCV/double-frem.ll [new file with mode: 0644]
test/CodeGen/RISCV/float-frem.ll [new file with mode: 0644]