aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/divide-by-constant.ll
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-12-21 20:06:19 +0000
committerDale Johannesen <dalej@apple.com>2010-12-21 20:06:19 +0000
commit5ecc340e34e6ca4b9f6ebde6c1379cb3b8084f69 (patch)
tree38c30ce8b5ef25045ec848be5d11df12aa0ea26a /test/CodeGen/X86/divide-by-constant.ll
parentefc96dd38c285c1a01aa6f613f533d1205e4acb2 (diff)
downloadexternal_llvm-5ecc340e34e6ca4b9f6ebde6c1379cb3b8084f69.zip
external_llvm-5ecc340e34e6ca4b9f6ebde6c1379cb3b8084f69.tar.gz
external_llvm-5ecc340e34e6ca4b9f6ebde6c1379cb3b8084f69.tar.bz2
Get the type of a shift from the shift, not from its shift
count operand. These should be the same but apparently are not always, and this is cleaner anyway. This improves the code in an existing test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/divide-by-constant.ll')
-rw-r--r--test/CodeGen/X86/divide-by-constant.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/divide-by-constant.ll b/test/CodeGen/X86/divide-by-constant.ll
index ab3bd94..545662f 100644
--- a/test/CodeGen/X86/divide-by-constant.ll
+++ b/test/CodeGen/X86/divide-by-constant.ll
@@ -29,9 +29,9 @@ entry:
ret i8 %div
; CHECK: test3:
-; CHECK: imull $171, %eax, %eax
-; CHECK-NEXT: shrb %ah
-; CHECK-NEXT: movzbl %ah, %eax
+; CHECK: movzbl 8(%esp), %eax
+; CHECK-NEXT: imull $171, %eax, %eax
+; CHECK-NEXT: shrl $9, %eax
; CHECK-NEXT: ret
}