mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
Merge commit c97a7675eea4 from llvm git (by Qiu Chaofan):
[PowerPC] Expand FSINCOS of fp128 (#76494) This fixes "fatal error: error in backend: Cannot select: 0x6d420285c0: f128,f128 = fsincos 0x6d4202b6f0" when compiling s_cpowl.c for powerpc64le. Upstream ticket: https://github.com/llvm/llvm-project/issues/76442 Reported by: pkubaj MFC after: 3 days
This commit is contained in:
parent
cd95f18c47
commit
7963968640
|
@ -1166,6 +1166,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
|
|||
setTruncStoreAction(MVT::f128, MVT::f32, Expand);
|
||||
|
||||
// No implementation for these ops for PowerPC.
|
||||
setOperationAction(ISD::FSINCOS, MVT::f128, Expand);
|
||||
setOperationAction(ISD::FSIN, MVT::f128, Expand);
|
||||
setOperationAction(ISD::FCOS, MVT::f128, Expand);
|
||||
setOperationAction(ISD::FPOW, MVT::f128, Expand);
|
||||
|
@ -1401,6 +1402,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
|
|||
setLibcallName(RTLIB::EXP2_F128, "exp2f128");
|
||||
setLibcallName(RTLIB::SIN_F128, "sinf128");
|
||||
setLibcallName(RTLIB::COS_F128, "cosf128");
|
||||
setLibcallName(RTLIB::SINCOS_F128, "sincosf128");
|
||||
setLibcallName(RTLIB::POW_F128, "powf128");
|
||||
setLibcallName(RTLIB::FMIN_F128, "fminf128");
|
||||
setLibcallName(RTLIB::FMAX_F128, "fmaxf128");
|
||||
|
|
Loading…
Reference in a new issue