Make special cases (0 inf nan) work for frem.
authorDale Johannesen <dalej@apple.com>
Wed, 21 Jan 2009 00:35:19 +0000 (00:35 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 21 Jan 2009 00:35:19 +0000 (00:35 +0000)
commited6af24e146a5d358115123f0d2be694c1fa3a84
treed5c56e9057df227684d86e572915e0b5defdda95
parent6cf7c390ecf33cdbe9e65d230e4f61ac548893e6
Make special cases (0 inf nan) work for frem.
Besides APFloat, this involved removing code
from two places that thought they knew the
result of frem(0., x) but were wrong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62645 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APFloat.h
lib/Support/APFloat.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/VMCore/ConstantFold.cpp
test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll [new file with mode: 0644]