X86: Align the stack on word boundaries in LowerFormalArguments()
[oota-llvm.git] / test / CodeGen / X86 / pr14088.ll
index 7041d143238938d23775003f4f392ea541de7712..16f20d0500a122f5bad689889cff2ec1463fffe7 100644 (file)
@@ -19,7 +19,14 @@ return:
   ret i32 %retval.0
 }
 
-; We were miscompiling this and using %ax instead of %cx in the movw.
+; We were miscompiling this and using %ax instead of %cx in the movw
+; in the following sequence:
+;      movswl  %cx, %ecx
+;      movw    %cx, (%rsi)
+;      movslq  %ecx, %rcx
+;
+; We can't produce the above sequence without special SD-level
+; heuristics. Now we produce this:
 ; CHECK: movw  %ax, (%rsi)
-; CHECK: movswl        %ax, %eax
-; CHECK: movslq        %eax, %rax
+; CHECK: cwtl
+; CHECK: cltq