PPCInstrInfo::optimizeCompareInstr should not optimize FP compares
authorHal Finkel <hfinkel@anl.gov>
Wed, 8 May 2013 12:16:14 +0000 (12:16 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 8 May 2013 12:16:14 +0000 (12:16 +0000)
commitb45eb9fd275f857788cabb15ef8aabf0ff5907cc
treec64b32d5f6cf2311ae557c2f267262062c12f103
parent3ea16db0be90892ab25a2f211d1a292be55f386c
PPCInstrInfo::optimizeCompareInstr should not optimize FP compares

The floating-point record forms on PPC don't set the condition register bits
based on a comparison with zero (like the integer record forms do), but rather
based on the exception status bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp
test/CodeGen/PowerPC/optcmp.ll