summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAna Pazos <apazos@codeaurora.org>2014-02-18 20:31:05 +0000
committerAna Pazos <apazos@codeaurora.org>2014-02-18 20:31:05 +0000
commita3de371b531a5667e2db3eb0cb1c8b9fc55941e4 (patch)
tree8705153ab9b51172c3d1c9125dd60f35f8b3b4b2 /lib
parentaa43604648e3ffc400dbcc1adec003c096eb76ca (diff)
downloadllvm-a3de371b531a5667e2db3eb0cb1c8b9fc55941e4.tar.gz
llvm-a3de371b531a5667e2db3eb0cb1c8b9fc55941e4.tar.bz2
llvm-a3de371b531a5667e2db3eb0cb1c8b9fc55941e4.tar.xz
[AArch64] Expanded sin, cos, pow with FP vector types inputs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/AArch64/AArch64ISelLowering.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/AArch64/AArch64ISelLowering.cpp b/lib/Target/AArch64/AArch64ISelLowering.cpp
index f525130be2..2e7235d478 100644
--- a/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -520,6 +520,16 @@ AArch64TargetLowering::AArch64TargetLowering(AArch64TargetMachine &TM)
// do such optimization in the future.
setOperationAction(ISD::MUL, MVT::v1i64, Expand);
setOperationAction(ISD::MUL, MVT::v2i64, Expand);
+
+ setOperationAction(ISD::FCOS, MVT::v2f64, Expand);
+ setOperationAction(ISD::FCOS, MVT::v4f32, Expand);
+ setOperationAction(ISD::FCOS, MVT::v2f32, Expand);
+ setOperationAction(ISD::FSIN, MVT::v2f64, Expand);
+ setOperationAction(ISD::FSIN, MVT::v4f32, Expand);
+ setOperationAction(ISD::FSIN, MVT::v2f32, Expand);
+ setOperationAction(ISD::FPOW, MVT::v2f64, Expand);
+ setOperationAction(ISD::FPOW, MVT::v4f32, Expand);
+ setOperationAction(ISD::FPOW, MVT::v2f32, Expand);
}
setTargetDAGCombine(ISD::SETCC);