Add a roundToIntegral method to APFloat, which can be parameterized over various...
authorOwen Anderson <resistor@mac.com>
Mon, 13 Aug 2012 23:32:49 +0000 (23:32 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 13 Aug 2012 23:32:49 +0000 (23:32 +0000)
commit7c626d30974c632ab500171ff185a24bcf2603bf
treec8376ef145853a72e22753cb83b46218bebf45a3
parent03e593efc65807dad7ca8807554584fcb89f40f1
Add a roundToIntegral method to APFloat, which can be parameterized over various rounding modes.  Use this to implement SelectionDAG constant folding of FFLOOR, FCEIL, and FTRUNC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161807 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APFloat.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Support/APFloat.cpp
test/CodeGen/ARM/floorf.ll [new file with mode: 0644]