]> granicus.if.org Git - llvm/commit
[RISCV] Add support for lowering floating point inlineasm clobbers
authorSimon Cook <simon.cook@embecosm.com>
Wed, 31 Jul 2019 09:07:21 +0000 (09:07 +0000)
committerSimon Cook <simon.cook@embecosm.com>
Wed, 31 Jul 2019 09:07:21 +0000 (09:07 +0000)
commit17f5720bcd30a0824ade8e209abf3f6805587777
tree33c613f0167d29a950b332ebb617d81bd56f3c35
parente45f9a1de6642fa14db83c8caa914081913377fd
[RISCV] Add support for lowering floating point inlineasm clobbers

This adds the required extension to RISC-V's getRegForInlineAsmConstraint
in order to be able to correctly distringuish between the 32 and 64-bit
floating point registers when the generic fX name appears in inlineasm
clobber contraints. It also adds a check to validate that callee saved
floating point registers are only saved in this case when a hard-float
ABI is selected.

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

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