diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 23:03:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 23:03:10 +0000 |
commit | dabb94adc15566aaf11b4befa18be55dbecfa9b0 (patch) | |
tree | f4d2e50bf53e684fbc4ef52e03d9e4ea53336450 | |
parent | 533ce5c070be4fd2c9c3fb9bd6c1a7b6bec80aaa (diff) |
Check for cannonicalization of shl X, 1 -> add X, X
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3670 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/shift.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index dde01f5658..c6a341f454 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -33,3 +33,7 @@ uint "test5"(uint %A) { ret uint %B } +uint %test6(uint %A) { + %B = shl uint %A, ubyte 1 ;; convert to an add instruction + ret uint %B +} |