From a9d68f140e3077645534ac518ef08d2dfa6a70cc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 Aug 2005 00:31:37 +0000 Subject: [PATCH] The variable SAR's only take one operand too llvm-svn: 22888 --- llvm/lib/Target/X86/X86ISelPattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp index e78a9df62c88..0ebd6299cffa 100644 --- a/llvm/lib/Target/X86/X86ISelPattern.cpp +++ b/llvm/lib/Target/X86/X86ISelPattern.cpp @@ -3283,7 +3283,7 @@ unsigned ISel::SelectExpr(SDOperand N) { case MVT::i32: Opc = X86::SAR32rCL; break; } BuildMI(BB, X86::MOV8rr, 1, X86::CL).addReg(Tmp2); - BuildMI(BB, Opc, 2, Result).addReg(Tmp1).addReg(Tmp2); + BuildMI(BB, Opc, 1, Result).addReg(Tmp1); return Result; case ISD::SETCC: