repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
Generic
/
2007-01-15-LoadSelectCycle.ll
blob
0bd23db7c62cf094dd3148b67e7ea3e70caf7b81
1
; RUN: llc < %s
2
; PR1114
3
4
declare i1 @foo()
5
6
define 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
}