LLVM currently represents floating-point negation as -0.0 - x. Fix
authorDan Gohman <gohman@apple.com>
Thu, 3 Sep 2009 22:53:57 +0000 (22:53 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 3 Sep 2009 22:53:57 +0000 (22:53 +0000)
commit3d45a853db014fdddcdb79424e663dfed5eccbc7
treeef59efff710665fe5b607a310afd1f7e22bbaf07
parent4f7228f851bc48fe6a729a9d526a0b8de60e48d0
LLVM currently represents floating-point negation as -0.0 - x. Fix
FastISel to recognize this pattern and emit a floating-point
negation using xor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80963 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FastISel.h
lib/CodeGen/SelectionDAG/FastISel.cpp
test/CodeGen/X86/fast-isel-fneg.ll [new file with mode: 0644]