[llvm-commits] [llvm] r47799 - in /llvm/trunk/lib/Target/X86: X86ISelLowering.cpp X86InstrInfo.td
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Sat Mar 1 14:27:48 PST 2008
Author: alenhar2
Date: Sat Mar 1 16:27:48 2008
New Revision: 47799
URL: http://llvm.org/viewvc/llvm-project?rev=47799&view=rev
Log:
make CAS work
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/lib/Target/X86/X86InstrInfo.td
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=47799&r1=47798&r2=47799&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Mar 1 16:27:48 2008
@@ -5358,10 +5358,10 @@
case MVT::i32: Reg = X86::EAX; size = 4; break;
};
SDOperand cpIn = DAG.getCopyToReg(Op.getOperand(0), Reg,
- Op.getOperand(2), SDOperand());
+ Op.getOperand(3), SDOperand());
SDOperand Ops[] = { cpIn.getValue(0),
Op.getOperand(1),
- Op.getOperand(3),
+ Op.getOperand(2),
DAG.getTargetConstant(size, MVT::i8),
cpIn.getValue(1) };
SDVTList Tys = DAG.getVTList(MVT::Other, MVT::Flag);
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=47799&r1=47798&r2=47799&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Sat Mar 1 16:27:48 2008
@@ -2548,6 +2548,7 @@
//FIXME: Please check the format Pseudo is certainly wrong, but the opcode and
// prefixes should be correct
+
let Defs = [EAX, EFLAGS], Uses = [EAX] in {
def CMPXCHG32 : I<0xB1, Pseudo, (outs), (ins i32mem:$ptr, GR32:$swap),
"cmpxchgl $swap,$ptr", []>, TB;
More information about the llvm-commits
mailing list