diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-11-30 06:02:26 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-11-30 06:02:26 +0000 |
commit | 201c9776bd4197569b71fef0519f98a28d1db989 (patch) | |
tree | f23152f3c338d59a79a7407bf5a96c8eb366d2da /test/CodeGen/X86/urem-i8-constant.ll | |
parent | 3f93df5733dce50961303d571cf16e032b0809bf (diff) | |
download | llvm-201c9776bd4197569b71fef0519f98a28d1db989.tar.gz llvm-201c9776bd4197569b71fef0519f98a28d1db989.tar.bz2 llvm-201c9776bd4197569b71fef0519f98a28d1db989.tar.xz |
Fix for PR2164: allow transforming arbitrary-width unsigned divides into
multiplies.
Some more cleverness would be nice, though. It would be nice if we
could do this transformation on illegal types. Also, we would
prefer a narrower constant when possible so that we can use a narrower
multiply, which can be cheaper.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/urem-i8-constant.ll')
-rw-r--r-- | test/CodeGen/X86/urem-i8-constant.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/urem-i8-constant.ll b/test/CodeGen/X86/urem-i8-constant.ll index 8a433334f6..bc93684877 100644 --- a/test/CodeGen/X86/urem-i8-constant.ll +++ b/test/CodeGen/X86/urem-i8-constant.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86 | not grep mul +; RUN: llvm-as < %s | llc -march=x86 | grep 111 define i8 @foo(i8 %tmp325) { %t546 = urem i8 %tmp325, 37 |