This is the real fix for Codegen/X86/2004-04-13-FPCMOV-Crash.llx which works
authorChris Lattner <sabre@nondot.org>
Wed, 14 Apr 2004 02:42:32 +0000 (02:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Apr 2004 02:42:32 +0000 (02:42 +0000)
commit098e945fbdd7eac94cc3c851eae83fcdd7c80726
tree1928c7cb5adf18a84e8f5bb39c02bdf0ebbbf92e
parentf1d483d64126c776a0436d9adea2e5be17dba0e8
This is the real fix for Codegen/X86/2004-04-13-FPCMOV-Crash.llx which works
even when the "optimization" I added before is turned off.  It generates this
extremely pointless code:

test:
        fld QWORD PTR [%ESP + 4]
        mov %AL, 0
        test %AL, %AL
        fcmove %ST(0), %ST(0)
        ret

Good thing the optimizer will have removed this before code generation
anyway.  :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12939 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/FloatingPoint.cpp
lib/Target/X86/X86FloatingPoint.cpp