[llvm-commits] [llvm] r76021 - /llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp

Anton Korobeynikov asl at math.spbu.ru
Thu Jul 16 07:20:57 PDT 2009


Author: asl
Date: Thu Jul 16 09:20:56 2009
New Revision: 76021

URL: http://llvm.org/viewvc/llvm-project?rev=76021&view=rev
Log:
We don't have native sine / cosine instructions

Modified:
    llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp

Modified: llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp?rev=76021&r1=76020&r2=76021&view=diff

==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp Thu Jul 16 09:20:56 2009
@@ -112,6 +112,11 @@
   // unsigned.
   setOperationAction(ISD::MULHS,            MVT::i64, Expand);
   setOperationAction(ISD::SMUL_LOHI,        MVT::i64, Expand);
+
+  setOperationAction(ISD::FSIN,             MVT::f32, Expand);
+  setOperationAction(ISD::FSIN,             MVT::f64, Expand);
+  setOperationAction(ISD::FCOS,             MVT::f32, Expand);
+  setOperationAction(ISD::FCOS,             MVT::f64, Expand);
 }
 
 SDValue SystemZTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {





More information about the llvm-commits mailing list