diff options
author | Dale Johannesen <dalej@apple.com> | 2010-12-21 21:55:50 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-12-21 21:55:50 +0000 |
commit | c72b18cdc8f155dbb99d554056f3bb6b38f5f72c (patch) | |
tree | 3b5ea1ea065dc0c9f4ceb067754b3c59e59bd998 /test/CodeGen/X86/divide-by-constant.ll | |
parent | 7d6fe13efc9bcb69d3479e32f8eace933c5bd2d5 (diff) | |
download | llvm-c72b18cdc8f155dbb99d554056f3bb6b38f5f72c.tar.gz llvm-c72b18cdc8f155dbb99d554056f3bb6b38f5f72c.tar.bz2 llvm-c72b18cdc8f155dbb99d554056f3bb6b38f5f72c.tar.xz |
Reapply 122353-122355 with fixes. 122354 was wrong;
the shift type was needed one place, the shift count
type another. The transform in 123555 had the same
problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/divide-by-constant.ll')
-rw-r--r-- | test/CodeGen/X86/divide-by-constant.ll | 6 |
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 ab3bd94149..545662fd0f 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 } |