From e68266dc7600aafbf3c246371a785134cc933a02 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Jan 2007 22:16:03 +0000 Subject: [PATCH] new testcase that causes instcombine to infinitely loop git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33342 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll diff --git a/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll b/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll new file mode 100644 index 00000000000..0aa20228299 --- /dev/null +++ b/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine -disable-output + +define <4 x i32> %test(<4 x i32> %A) { + %B = xor <4 x i32> %A, < i32 -1, i32 -1, i32 -1, i32 -1 > + %C = and <4 x i32> %B, < i32 -1, i32 -1, i32 -1, i32 -1 > + ret <4 x i32> %C +}