Chandler Carruth | 4177e6f | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -simplify-libcalls -S | grep "select i1 %ispos" |
Chris Lattner | 313f0e6 | 2008-06-09 08:26:51 +0000 | [diff] [blame] | 2 | ; PR2337 |
3 | |||||
4 | define i32 @test(i32 %x) { | ||||
5 | entry: | ||||
6 | %call = call i32 @abs( i32 %x ) ; <i32> [#uses=1] | ||||
7 | ret i32 %call | ||||
8 | } | ||||
9 | |||||
10 | declare i32 @abs(i32) | ||||
11 |