X86AddressMode AM;
if (Op1)
// Address is in register.
- AM.Base.Reg = Op0;
+ AM.Base.Reg = Op1;
else
AM.GV = cast<GlobalValue>(V);
- addFullAddress(BuildMI(MBB, TII.get(Opc)), AM);
+ addFullAddress(BuildMI(MBB, TII.get(Opc)), AM).addReg(Op0);
return true;
}
default: break;
case Instruction::Load:
return X86SelectLoad(I);
+ case Instruction::Store:
+ return X86SelectStore(I);
}
return false;
; RUN: llvm-as < %s | llc -fast-isel -mtriple=i386-apple-darwin -mattr=sse2 | \
-; RUN: grep mov | grep lazy_ptr | count 2
+; RUN: grep mov | grep lazy_ptr | count 1
@src = external global i32