From e04c652f5db975ff00bcabc220b7a55ab155d7e3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 9 Apr 2007 01:37:35 +0000 Subject: [PATCH] new testcase for PR1304 llvm-svn: 35791 --- .../InstCombine/2007-04-08-SingleEltVectorCrash.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll diff --git a/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll b/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll new file mode 100644 index 000000000000..34322a2788a2 --- /dev/null +++ b/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine -disable-output +; PR1304 + +define i64 @bork(<1 x i64> %vec) { + %tmp = extractelement <1 x i64> %vec, i32 0 + ret i64 %tmp +}