From ce4eaecb2ee2d52edde5f607888c052be2e5b950 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 2 Aug 2007 17:11:24 +0000 Subject: Reduced testcase for PR1594 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40740 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll (limited to 'test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll') 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 0000000000..988599ba3f --- /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 +} -- cgit v1.2.3