summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-18 22:16:03 +0000
committerChris Lattner <sabre@nondot.org>2007-01-18 22:16:03 +0000
commite68266dc7600aafbf3c246371a785134cc933a02 (patch)
treeb73b281bc92855032ed0fe73dfc88672f7a36c04 /test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll
parent9fd6be776b88b54245a147a0ab97965cc8615c38 (diff)
downloadllvm-e68266dc7600aafbf3c246371a785134cc933a02.tar.gz
llvm-e68266dc7600aafbf3c246371a785134cc933a02.tar.bz2
llvm-e68266dc7600aafbf3c246371a785134cc933a02.tar.xz
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
Diffstat (limited to 'test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll')
-rw-r--r--test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll7
1 files changed, 7 insertions, 0 deletions
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 0000000000..0aa2022829
--- /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
+}