| Dan Gohman | 1880092 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -simplify-libcalls -S | grep {select i1 %ispos} |
| Chris Lattner | 9c9f531 | 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 | |||||