mffsl is available since ISA 3.0.
GCC emits extra code to support __builtin_mffsl on targets earlier than Power9, while this patch doesn't do it. In this patch it is actually named __builtin_ppc_mffsl to follow our convention.
Paths
| Differential D158065
[PowerPC] Implement builtin for mffsl ClosedPublic Authored by qiucf on Aug 16 2023, 3:02 AM.
Details
Summary mffsl is available since ISA 3.0. GCC emits extra code to support __builtin_mffsl on targets earlier than Power9, while this patch doesn't do it. In this patch it is actually named __builtin_ppc_mffsl to follow our convention.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 16 2023, 3:02 AM qiucf added a child revision: D158066: [PowerPC] Fix use of FPSCR builtins in smmintrin.h.Aug 16 2023, 3:08 AM This revision is now accepted and ready to land.Aug 16 2023, 11:56 AM Closed by commit rG082c5d7f63c4: [PowerPC] Implement builtin for mffsl (authored by qiucf). · Explain WhySep 4 2023, 8:22 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 555796 clang/include/clang/Basic/BuiltinsPPC.def
clang/test/CodeGen/PowerPC/builtins-ppc.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/read-set-flm.ll
|