summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll')
-rw-r--r--llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll b/llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll
index 8b795eaaab6..3aa1bd60cfd 100644
--- a/llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll
+++ b/llvm/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll
@@ -20,3 +20,10 @@ define i1 @mul(i1 %x) {
ret i1 %z
; CHECK: ret i1 %x
}
+
+define i1 @ne(i1 %x) {
+; CHECK: @ne
+ %z = icmp ne i1 %x, 0
+ ret i1 %z
+; CHECK: ret i1 %x
+}
OpenPOWER on IntegriCloud