]> granicus.if.org Git - clang/commit
Merging r367403:
authorHans Wennborg <hans@hanshq.net>
Fri, 9 Aug 2019 09:40:09 +0000 (09:40 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 9 Aug 2019 09:40:09 +0000 (09:40 +0000)
commit5d261ccfa072164e683c828d1344ca61542b29b6
tree0a022fc4f179ccf695adb7b2250e35083e00baed
parent89e6b12344aa661622ab1325e2538c685b1d3a64
Merging r367403:
------------------------------------------------------------------------
r367403 | lenary | 2019-07-31 11:45:55 +0200 (Wed, 31 Jul 2019) | 20 lines

[RISCV] Support 'f' Inline Assembly Constraint

Summary:
This adds the 'f' inline assembly constraint, as supported by GCC. An
'f'-constrained operand is passed in a floating point register. Exactly
which kind of floating-point register (32-bit or 64-bit) is decided
based on the operand type and the available standard extensions (-f and
-d, respectively).

This patch adds support in both the clang frontend, and LLVM itself.

Reviewers: asb, lewis-revill

Reviewed By: asb

Subscribers: hiraditya, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D65500
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_90@368420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/RISCV.cpp
test/CodeGen/riscv-inline-asm.c