diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-02 05:34:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-02 05:34:35 +0000 |
commit | edc436bbf48441e7fd4d138c7ebd31b3be3baa22 (patch) | |
tree | f71220167b6cfb762edbbc1e5a9af42deaeeb47a | |
parent | 8bdcb250728bb9b17788f53eb1768637da055c3d (diff) |
merge sext-2 into sext.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90293 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/sext-2.ll | 14 | ||||
-rw-r--r-- | test/Transforms/InstCombine/sext.ll | 12 |
2 files changed, 12 insertions, 14 deletions
diff --git a/test/Transforms/InstCombine/sext-2.ll b/test/Transforms/InstCombine/sext-2.ll deleted file mode 100644 index 39d4a3c3d5..0000000000 --- a/test/Transforms/InstCombine/sext-2.ll +++ /dev/null @@ -1,14 +0,0 @@ -; Checks to see that instcombine can handle a sign extension of i1 - -; RUN: opt < %s -instcombine -S | FileCheck %s - -define void @test(<2 x i16> %srcA, <2 x i16> %srcB, <2 x i16>* %dst) nounwind { -entry: -; CHECK-NOT: tmask -; CHECK: ret - %cmp = icmp eq <2 x i16> %srcB, %srcA; - %sext = sext <2 x i1> %cmp to <2 x i16>; - %tmask = ashr <2 x i16> %sext, <i16 15, i16 15> ; - store <2 x i16> %tmask, <2 x i16>* %dst; - ret void -} diff --git a/test/Transforms/InstCombine/sext.ll b/test/Transforms/InstCombine/sext.ll index 1acf468c42..6deee1ff56 100644 --- a/test/Transforms/InstCombine/sext.ll +++ b/test/Transforms/InstCombine/sext.ll @@ -114,3 +114,15 @@ entry: ; CHECK-NEXT: ret i32 } +define void @test11(<2 x i16> %srcA, <2 x i16> %srcB, <2 x i16>* %dst) { + %cmp = icmp eq <2 x i16> %srcB, %srcA + %sext = sext <2 x i1> %cmp to <2 x i16> + %tmask = ashr <2 x i16> %sext, <i16 15, i16 15> + store <2 x i16> %tmask, <2 x i16>* %dst + ret void +; CHECK: @test11 +; CHECK-NEXT: icmp eq +; CHECK-NEXT: sext <2 x i1> +; CHECK-NEXT: store <2 x i16> +; CHECK-NEXT: ret +} |