diff options
Diffstat (limited to 'test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll')
-rw-r--r-- | test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll b/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll new file mode 100644 index 0000000000..8b795eaaab --- /dev/null +++ b/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll @@ -0,0 +1,22 @@ +; RUN: opt < %s -instsimplify -S | FileCheck %s + +define i1 @add(i1 %x) { +; CHECK: @add + %z = add i1 %x, %x + ret i1 %z +; CHECK: ret i1 false +} + +define i1 @sub(i1 %x) { +; CHECK: @sub + %z = sub i1 false, %x + ret i1 %z +; CHECK: ret i1 %x +} + +define i1 @mul(i1 %x) { +; CHECK: @mul + %z = mul i1 %x, %x + ret i1 %z +; CHECK: ret i1 %x +} |