From: Chris Lattner Date: Fri, 13 Jul 2007 16:24:10 +0000 (+0000) Subject: Fix CodeGen/Generic/print-arith-fp.ll on sparc (PR1551) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8dc4b59b857fdffe79dca0a3a8516ddf942d5466;hp=7f6d4e8b6bf2e5465ad148a253b1ff35f04f008e;p=oota-llvm.git Fix CodeGen/Generic/print-arith-fp.ll on sparc (PR1551) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39813 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 6fb97df1cec..8c8b3f8d3ac 100644 --- a/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -191,8 +191,10 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM) setOperationAction(ISD::FSIN , MVT::f64, Expand); setOperationAction(ISD::FCOS , MVT::f64, Expand); + setOperationAction(ISD::FREM , MVT::f64, Expand); setOperationAction(ISD::FSIN , MVT::f32, Expand); setOperationAction(ISD::FCOS , MVT::f32, Expand); + setOperationAction(ISD::FREM , MVT::f32, Expand); setOperationAction(ISD::CTPOP, MVT::i32, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); setOperationAction(ISD::CTLZ , MVT::i32, Expand);