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.
Paths
| Differential D105957
[PowerPC] Implement intrinsics for mtfsf[i] ClosedPublic Authored by nemanjai on Jul 13 2021, 7:09 PM.
Details
Summary 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.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 13 2021, 7:09 PM nemanjai added a parent revision: D105930: [PowerPC] Implement XL compact math builtins.Jul 13 2021, 7:11 PM
Comment Actions The PPC instructions tablegen part looks good to me.
This revision is now accepted and ready to land.Jul 14 2021, 7:58 PM
This revision was landed with ongoing or failed builds.Jul 16 2021, 2:26 PM Closed by commit rG35a18a981f6b: [PowerPC] Implement intrinsics for mtfsf[i] (authored by nemanjai, committed by lei). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 359451 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
|
If mtfsf was changed, mtfsfi mtfsb0 mtfsb1 should also be changed?