diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-12 21:40:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-12 21:40:22 +0000 |
commit | cb8e9c94ff61905ad981f1f07e75667709ea9641 (patch) | |
tree | d2d0556570f9c3712c19899a33030a6328d2fa3d /test | |
parent | 60bdce6fd0687b2dad96079500adea4be76c6505 (diff) | |
download | external_llvm-cb8e9c94ff61905ad981f1f07e75667709ea9641.zip external_llvm-cb8e9c94ff61905ad981f1f07e75667709ea9641.tar.gz external_llvm-cb8e9c94ff61905ad981f1f07e75667709ea9641.tar.bz2 |
Add testcases for simple things we can handle that occur now in vortex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/div.ll | 6 | ||||
-rw-r--r-- | test/Transforms/InstCombine/rem.ll | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/div.ll b/test/Transforms/InstCombine/div.ll index 8e03fc0..54199ae 100644 --- a/test/Transforms/InstCombine/div.ll +++ b/test/Transforms/InstCombine/div.ll @@ -55,3 +55,9 @@ bool %test9(ubyte %A) { ret bool %C } +uint %test10(uint %X, bool %C) { + %V = select bool %C, uint 64, uint 8 + %R = div uint %X, %V + ret uint %R +} + diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll index dd4b42a..2020bf9 100644 --- a/test/Transforms/InstCombine/rem.ll +++ b/test/Transforms/InstCombine/rem.ll @@ -25,3 +25,9 @@ bool %test3(int %A) { %C = setne int %B, 0 ret bool %C } + +uint %test4(uint %X, bool %C) { + %V = select bool %C, uint 1, uint 8 + %R = rem uint %X, %V + ret uint %R +} |