[PATCH] D105957: [PowerPC] Implement intrinsics for mtfsf[i]
Nemanja Ivanovic via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 13 19:09:58 PDT 2021
nemanjai created this revision.
nemanjai added reviewers: PowerPC, ZhangKang.
Herald added subscribers: shchenz, kbarton, hiraditya.
nemanjai requested review of this revision.
Herald added projects: clang, LLVM.
Herald added a subscriber: cfe-commits.
This provides intrinsics for emitting instructions that set the FPSCR (`mtfsf/mtfsfi`).
The patch also conservatively marks the rounding mode as an implicit def for both since they both may set the rounding mode depending on the operands.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105957
Files:
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-math.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/P9InstrResources.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-math.ll
llvm/test/CodeGen/PowerPC/fpscr-intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105957.358491.patch
Type: text/x-patch
Size: 10447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210714/a8bc7d59/attachment-0001.bin>
More information about the cfe-commits
mailing list