aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-02 17:11:24 +0000
committerChris Lattner <sabre@nondot.org>2007-08-02 17:11:24 +0000
commitddfc59b645417265254611ae39b8d8b9050d1c03 (patch)
treedb27ca21dc97f1f9acd93148e82a7bf3bff259fd /test
parent581e1ad0a88658cde9eeab61416257dc582f5d2b (diff)
downloadexternal_llvm-ddfc59b645417265254611ae39b8d8b9050d1c03.zip
external_llvm-ddfc59b645417265254611ae39b8d8b9050d1c03.tar.gz
external_llvm-ddfc59b645417265254611ae39b8d8b9050d1c03.tar.bz2
Reduced testcase for PR1594
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll b/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll
new file mode 100644
index 0000000..988599b
--- /dev/null
+++ b/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+; PR1594
+
+define i64 @test(i16 %tmp510, i16 %tmp512) {
+ %W = sext i16 %tmp510 to i32 ; <i32> [#uses=1]
+ %X = sext i16 %tmp512 to i32 ; <i32> [#uses=1]
+ %Y = add i32 %W, %X ; <i32> [#uses=1]
+ %Z = sext i32 %Y to i64 ; <i64> [#uses=1]
+ ret i64 %Z
+}