diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-12-21 20:06:19 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-12-21 20:06:19 +0000 |
| commit | fa5dc82fda4addd3da3518dfc6193f8ae7656271 (patch) | |
| tree | a29b35a4fa285b6a000f94be7ed386950efd6149 /llvm/test/CodeGen | |
| parent | d64931df774943c555959173506e5fe37960e788 (diff) | |
| download | bcm5719-llvm-fa5dc82fda4addd3da3518dfc6193f8ae7656271.tar.gz bcm5719-llvm-fa5dc82fda4addd3da3518dfc6193f8ae7656271.zip | |
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.
llvm-svn: 122354
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/divide-by-constant.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/divide-by-constant.ll b/llvm/test/CodeGen/X86/divide-by-constant.ll index ab3bd941495..545662fd0ff 100644 --- a/llvm/test/CodeGen/X86/divide-by-constant.ll +++ b/llvm/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 } |

