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)
commit46361a1ea1273927b36955454f27b40c74088618
tree696eb103b0fed1e5462c90958862136842afb0cc
parent63a41277fe4764bac27aa9276d0343c6104930a2
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

llvm-svn: 236183
llvm/lib/Target/X86/X86InstrFPStack.td
llvm/test/CodeGen/X86/fcmove.ll [new file with mode: 0644]