Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s |
Chris Lattner | 68a980b | 2007-01-16 05:58:50 +0000 | [diff] [blame] | 2 | ; PR1114 |
3 | |||||
Reid Spencer | ce38056 | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 4 | declare i1 @foo() |
Chris Lattner | 68a980b | 2007-01-16 05:58:50 +0000 | [diff] [blame] | 5 | |
Reid Spencer | ce38056 | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 6 | define i32 @test(i32* %A, i32* %B) { |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 7 | %a = load i32, i32* %A |
8 | %b = load i32, i32* %B | ||||
Reid Spencer | ce38056 | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 9 | %cond = call i1 @foo() |
Chris Lattner | 68a980b | 2007-01-16 05:58:50 +0000 | [diff] [blame] | 10 | %c = select i1 %cond, i32 %a, i32 %b |
11 | ret i32 %c | ||||
12 | } |