From 69a008075b29fbe0644ccbeecf1418ef8cca5e24 Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Wed, 2 Dec 2009 04:59:58 +0000 Subject: Fixed an assertion failure for tracking sext of a vector of integers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90290 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/sext-2.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Transforms/InstCombine/sext-2.ll (limited to 'test/Transforms/InstCombine') diff --git a/test/Transforms/InstCombine/sext-2.ll b/test/Transforms/InstCombine/sext-2.ll new file mode 100644 index 0000000..39d4a3c --- /dev/null +++ b/test/Transforms/InstCombine/sext-2.ll @@ -0,0 +1,14 @@ +; 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, ; + store <2 x i16> %tmask, <2 x i16>* %dst; + ret void +} -- cgit v1.1