From: Duncan Sands Date: Fri, 14 Jan 2011 14:16:33 +0000 (+0000) Subject: Rename this test. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=62becca681d04ad72079b4733a96f97ba3caa109;p=oota-llvm.git Rename this test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123440 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstSimplify/2010-12-20-Boolean.ll b/test/Transforms/InstSimplify/2010-12-20-Boolean.ll new file mode 100644 index 00000000000..3aa1bd60cfd --- /dev/null +++ b/test/Transforms/InstSimplify/2010-12-20-Boolean.ll @@ -0,0 +1,29 @@ +; 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 +} + +define i1 @ne(i1 %x) { +; CHECK: @ne + %z = icmp ne i1 %x, 0 + ret i1 %z +; CHECK: ret i1 %x +} diff --git a/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll b/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll deleted file mode 100644 index 3aa1bd60cfd..00000000000 --- a/test/Transforms/InstSimplify/2010-12-20-I1Arithmetic.ll +++ /dev/null @@ -1,29 +0,0 @@ -; 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 -} - -define i1 @ne(i1 %x) { -; CHECK: @ne - %z = icmp ne i1 %x, 0 - ret i1 %z -; CHECK: ret i1 %x -}