diff options
| author | Tim Northover <Tim.Northover@arm.com> | 2013-03-08 13:55:07 +0000 |
|---|---|---|
| committer | Tim Northover <Tim.Northover@arm.com> | 2013-03-08 13:55:07 +0000 |
| commit | 95f4892d4c09725b436342abe11db4e398e839cc (patch) | |
| tree | cbc47b52d0a39590daf44957afe6d6f0c0079308 /llvm/lib | |
| parent | f52a672bf57f6c977e87bca4356dc32afe8fa5c5 (diff) | |
| download | bcm5719-llvm-95f4892d4c09725b436342abe11db4e398e839cc.tar.gz bcm5719-llvm-95f4892d4c09725b436342abe11db4e398e839cc.zip | |
AArch64: expand sincos operations, we don't support them.
Patch based on Mans Rullgard's.
llvm-svn: 176688
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 34cc0e3b3b8..e9f449709c4 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -200,6 +200,8 @@ AArch64TargetLowering::AArch64TargetLowering(AArch64TargetMachine &TM) setOperationAction(ISD::FSIN, MVT::f32, Expand); setOperationAction(ISD::FSIN, MVT::f64, Expand); + setOperationAction(ISD::FSINCOS, MVT::f32, Expand); + setOperationAction(ISD::FSINCOS, MVT::f64, Expand); // Virtually no operation on f128 is legal, but LLVM can't expand them when // there's a valid register class, so we need custom operations in most cases. @@ -217,6 +219,7 @@ AArch64TargetLowering::AArch64TargetLowering(AArch64TargetMachine &TM) setOperationAction(ISD::FREM, MVT::f128, Expand); setOperationAction(ISD::FRINT, MVT::f128, Expand); setOperationAction(ISD::FSIN, MVT::f128, Expand); + setOperationAction(ISD::FSINCOS, MVT::f128, Expand); setOperationAction(ISD::FSQRT, MVT::f128, Expand); setOperationAction(ISD::FSUB, MVT::f128, Custom); setOperationAction(ISD::FTRUNC, MVT::f128, Expand); |

