commit | c915e271dabb580bad526655306e39bb097f5980 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Thu Nov 15 23:25:33 2007 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Thu Nov 15 23:25:33 2007 +0000 |
tree | 0bdf888ec6dc60c6593bcce3ba60a8d446bcc9ed | |
parent | 4a365ad43016e3bf8ce4d0383706a57f5d59976d [diff] [blame] |
Implement necessary bits for flt_rounds gcc builtin. Codegen bits and llvm-gcc support will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44182 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index c078f23..ade0a28 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -2930,6 +2930,10 @@ DAG.setRoot(Tmp.getValue(1)); return 0; } + case Intrinsic::flt_rounds: { + setValue(&I, DAG.getNode(ISD::FLT_ROUNDS, MVT::i32)); + return 0; + } } }