mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Pull in r163967 from upstream llvm trunk:
X86: Emitting x87 fsin/fcos for sinf/cosf is not safe without unsafe fp math. This should make clang emit calls to libm for sinf/cosf by default. MFC after: 1 week
This commit is contained in:
parent
6b63b7b726
commit
d2e1803774
1 changed files with 2 additions and 0 deletions
|
|
@ -643,7 +643,9 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
|||
setOperationAction(ISD::FCOPYSIGN, MVT::f32, Expand);
|
||||
|
||||
if (!TM.Options.UnsafeFPMath) {
|
||||
setOperationAction(ISD::FSIN , MVT::f32 , Expand);
|
||||
setOperationAction(ISD::FSIN , MVT::f64 , Expand);
|
||||
setOperationAction(ISD::FCOS , MVT::f32 , Expand);
|
||||
setOperationAction(ISD::FCOS , MVT::f64 , Expand);
|
||||
}
|
||||
addLegalFPImmediate(APFloat(+0.0)); // FLD0
|
||||
|
|
|
|||
Loading…
Reference in a new issue