diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-05 07:52:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-05 07:52:47 +0000 |
commit | fee906b482f2608d10435a583c9851fa6cd777a7 (patch) | |
tree | 5f67a44da5ed950055959b326f011068ed65b931 /test/Transforms | |
parent | c031e33b68168ee776b825b01eca83c56b2b2996 (diff) | |
download | external_llvm-fee906b482f2608d10435a583c9851fa6cd777a7.zip external_llvm-fee906b482f2608d10435a583c9851fa6cd777a7.tar.gz external_llvm-fee906b482f2608d10435a583c9851fa6cd777a7.tar.bz2 |
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26002 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/div.ll | 6 | ||||
-rw-r--r-- | test/Transforms/InstCombine/rem.ll | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/div.ll b/test/Transforms/InstCombine/div.ll index 54199ae..cab492d 100644 --- a/test/Transforms/InstCombine/div.ll +++ b/test/Transforms/InstCombine/div.ll @@ -61,3 +61,9 @@ uint %test10(uint %X, bool %C) { ret uint %R } +uint %test10(uint %X, ubyte %B) { + %Amt = shl uint 32, ubyte %B + %V = div uint %X, %Amt + ret uint %V +} + diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll index 2020bf9..b1b5555 100644 --- a/test/Transforms/InstCombine/rem.ll +++ b/test/Transforms/InstCombine/rem.ll @@ -31,3 +31,10 @@ uint %test4(uint %X, bool %C) { %R = rem uint %X, %V ret uint %R } + +uint %test5(uint %X, ubyte %B) { + %Amt = shl uint 32, ubyte %B + %V = rem uint %X, %Amt + ret uint %V +} + |