blob: 49203d95d4a06e181bec2771ea46ddbe31412314 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc
2; PR1114
3
4declare i1 @foo()
5
6define i32 @test(i32* %A, i32* %B) {
7 %a = load i32* %A
8 %b = load i32* %B
9 %cond = call i1 @foo()
10 %c = select i1 %cond, i32 %a, i32 %b
11 ret i32 %c
12}