diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-02 17:11:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-02 17:11:24 +0000 |
commit | 498137dbfc90507fb2065ee9cc48c368515d10d0 (patch) | |
tree | 09fbc882e45a8b5bbeb2af04cfffcae36b56b3a6 /llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll | |
parent | 222b214be777ba8f09c7a4a51bf989166eb6cb4f (diff) | |
download | bcm5719-llvm-498137dbfc90507fb2065ee9cc48c368515d10d0.tar.gz bcm5719-llvm-498137dbfc90507fb2065ee9cc48c368515d10d0.zip |
Reduced testcase for PR1594
llvm-svn: 40740
Diffstat (limited to 'llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll b/llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll new file mode 100644 index 00000000000..988599ba3f9 --- /dev/null +++ b/llvm/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 +} |