From: Chris Lattner Date: Thu, 23 Jul 2009 05:25:12 +0000 (+0000) Subject: rename test X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6dab05b035144af0d0e18c3c7eaf367b6fe8c26;p=oota-llvm.git rename test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76860 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/vector-casts-1.ll b/test/Transforms/InstCombine/vector-casts-1.ll deleted file mode 100644 index a73a84ac1e0..00000000000 --- a/test/Transforms/InstCombine/vector-casts-1.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: llvm-as < %s | opt -instcombine > %t -; RUN: not grep trunc %t -; RUN: not grep ashr %t - -; This turns into a&1 != 0 -define <2 x i1> @a(<2 x i64> %a) { - %t = trunc <2 x i64> %a to <2 x i1> - ret <2 x i1> %t -} -; The ashr turns into an lshr. -define <2 x i64> @b(<2 x i64> %a) { - %b = and <2 x i64> %a, - %t = ashr <2 x i64> %b, - ret <2 x i64> %t -} diff --git a/test/Transforms/InstCombine/vector-casts.ll b/test/Transforms/InstCombine/vector-casts.ll new file mode 100644 index 00000000000..a73a84ac1e0 --- /dev/null +++ b/test/Transforms/InstCombine/vector-casts.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | opt -instcombine > %t +; RUN: not grep trunc %t +; RUN: not grep ashr %t + +; This turns into a&1 != 0 +define <2 x i1> @a(<2 x i64> %a) { + %t = trunc <2 x i64> %a to <2 x i1> + ret <2 x i1> %t +} +; The ashr turns into an lshr. +define <2 x i64> @b(<2 x i64> %a) { + %b = and <2 x i64> %a, + %t = ashr <2 x i64> %b, + ret <2 x i64> %t +}