From 313f0e63f7c751e2ef6b2dbc163f1b68d2bcc4c8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 9 Jun 2008 08:26:51 +0000 Subject: lower calls to abs to inline code, PR2337 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52138 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/SimplifyLibCalls/abs.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Transforms/SimplifyLibCalls/abs.ll (limited to 'test/Transforms') diff --git a/test/Transforms/SimplifyLibCalls/abs.ll b/test/Transforms/SimplifyLibCalls/abs.ll new file mode 100644 index 0000000000..520189bb28 --- /dev/null +++ b/test/Transforms/SimplifyLibCalls/abs.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep {select i1 %ispos} +; PR2337 + +define i32 @test(i32 %x) { +entry: + %call = call i32 @abs( i32 %x ) ; [#uses=1] + ret i32 %call +} + +declare i32 @abs(i32) + -- cgit v1.2.3-70-g09d2