aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/legalize-shift-64.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/legalize-shift-64.ll')
-rw-r--r--test/CodeGen/X86/legalize-shift-64.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/X86/legalize-shift-64.ll b/test/CodeGen/X86/legalize-shift-64.ll
index 66d9a6d..2026472 100644
--- a/test/CodeGen/X86/legalize-shift-64.ll
+++ b/test/CodeGen/X86/legalize-shift-64.ll
@@ -8,9 +8,9 @@ define i64 @test1(i32 %xx, i32 %test) nounwind {
ret i64 %shl
; CHECK: test1:
; CHECK: shll %cl, %eax
+; CHECK: shrl %edx
; CHECK: xorb $31
; CHECK: shrl %cl, %edx
-; CHECK: shrl %edx
}
define i64 @test2(i64 %xx, i32 %test) nounwind {
@@ -20,9 +20,9 @@ define i64 @test2(i64 %xx, i32 %test) nounwind {
ret i64 %shl
; CHECK: test2:
; CHECK: shll %cl, %esi
+; CHECK: shrl %edx
; CHECK: xorb $31
; CHECK: shrl %cl, %edx
-; CHECK: shrl %edx
; CHECK: orl %esi, %edx
; CHECK: shll %cl, %eax
}
@@ -34,9 +34,9 @@ define i64 @test3(i64 %xx, i32 %test) nounwind {
ret i64 %shr
; CHECK: test3:
; CHECK: shrl %cl, %esi
+; CHECK: leal (%edx,%edx), %eax
; CHECK: xorb $31, %cl
; CHECK: shll %cl, %eax
-; CHECK: addl %eax, %eax
; CHECK: orl %esi, %eax
; CHECK: shrl %cl, %edx
}
@@ -48,9 +48,9 @@ define i64 @test4(i64 %xx, i32 %test) nounwind {
ret i64 %shr
; CHECK: test4:
; CHECK: shrl %cl, %esi
+; CHECK: leal (%edx,%edx), %eax
; CHECK: xorb $31, %cl
; CHECK: shll %cl, %eax
-; CHECK: addl %eax, %eax
; CHECK: orl %esi, %eax
; CHECK: sarl %cl, %edx
}