Emit the immediate form of in/out when possible.
authorChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 17:20:37 +0000 (17:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 17:20:37 +0000 (17:20 +0000)
commit87e18deabc2e2ee9fbdb6a9d0766607ab6d8134d
treee2ff2a11562100fe4078b1fb9391720620337bcd
parent440bbc257edf23026a006a1f86199b082cec39e6
Emit the immediate form of in/out when possible.
Fix several bugs in the intrinsics:
  1. Make sure to copy the input registers before the instructions that use them
  2. Make sure to copy the value returned by 'in' out of EAX into the register
     it is supposed to be in.

This fixes assertions when using in/out and linear scan.

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