Change x86 CMOVE_F to read it source, not write it.
authorPete Cooper <peter_cooper@apple.com>
Wed, 29 Apr 2015 23:51:33 +0000 (23:51 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 29 Apr 2015 23:51:33 +0000 (23:51 +0000)
commit224f06e5ddc6a3a14d5dbf509e20de5992e2f946
tree9f7175f6cf203967bfb4fee264544c85b42ad4ac
parent03da81829e0ff5d6ecc6b029160dba11e903c552
Change x86 CMOVE_F to read it source, not write it.

This was breaking sqlite with the machine verifier because operand 0 was a def according to tablegen, but didn't have the 'isDef' flag set.

Looking at the ISA, its clear that this operand is a source as writing to st(0) is implicit.  So move the operand to the correct place in the td file.

rdar://problem/20751584

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrFPStack.td
test/CodeGen/X86/fcmove.ll [new file with mode: 0644]