aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-06 07:38:00 +0000
committerChris Lattner <sabre@nondot.org>2004-07-06 07:38:00 +0000
commit970c17889a1f67cf3261e165711e1b33866dc295 (patch)
tree5debeca1e3c27bbb18147987b6e44315e865118d /test
parent1e3564ef059a0e8d2eb7db49c132c1d275b71b89 (diff)
downloadexternal_llvm-970c17889a1f67cf3261e165711e1b33866dc295.zip
external_llvm-970c17889a1f67cf3261e165711e1b33866dc295.tar.gz
external_llvm-970c17889a1f67cf3261e165711e1b33866dc295.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/rem.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll
index b7a9a0a..dd4b42a 100644
--- a/test/Transforms/InstCombine/rem.ll
+++ b/test/Transforms/InstCombine/rem.ll
@@ -19,3 +19,9 @@ uint %test3(uint %A) {
%B = rem uint %A, 8 ; & 7
ret uint %B
}
+
+bool %test3(int %A) {
+ %B = rem int %A, -8 ; & 7
+ %C = setne int %B, 0
+ ret bool %C
+}