summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit7c27a265dc84069451cba872d89f4234dcee2a0f (patch)
tree0eb6fec06125cb31d01cd7beec3c65a2b52b835c /llvm/lib
parent9422fd0c14bff4d2e250e0ff3544b6aa081ce67a (diff)
downloadbcm5719-llvm-7c27a265dc84069451cba872d89f4234dcee2a0f.tar.gz
bcm5719-llvm-7c27a265dc84069451cba872d89f4234dcee2a0f.zip
[AArch64] Expanded sin, cos, pow with FP vector types inputs
llvm-svn: 201601
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelLowering.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index f525130be2c..2e7235d478f 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud