xref: /llvm-project/llvm/test/CodeGen/Generic/2007-01-15-LoadSelectCycle.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2; PR1114
3
4declare i1 @foo()
5
6define i32 @test(ptr %A, ptr %B) {
7	%a = load i32, ptr %A
8	%b = load i32, ptr %B
9	%cond = call i1 @foo()
10	%c = select i1 %cond, i32 %a, i32 %b
11	ret i32 %c
12}
13