From: Chris Lattner Date: Thu, 2 Aug 2007 17:11:24 +0000 (+0000) Subject: Reduced testcase for PR1594 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce4eaecb2ee2d52edde5f607888c052be2e5b950;p=oota-llvm.git Reduced testcase for PR1594 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40740 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 00000000000..988599ba3f9 --- /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 ; [#uses=1] + %X = sext i16 %tmp512 to i32 ; [#uses=1] + %Y = add i32 %W, %X ; [#uses=1] + %Z = sext i32 %Y to i64 ; [#uses=1] + ret i64 %Z +}