repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation tests. NFC
[llvm-complete.git]
/
test
/
Transforms
/
SCCP
/
2008-04-22-multiple-ret-sccp.ll
blob
e7168dda0891ca138d2c03a70fb4e407bbed9451
1
; RUN: opt < %s -sccp -S | grep "ret i32 %Z"
2
; rdar://5778210
3
4
declare {i32, i32} @bar(i32 %A)
5
6
define i32 @foo() {
7
%X = call {i32, i32} @bar(i32 17)
8
%Y = extractvalue {i32, i32} %X, 0
9
%Z = add i32 %Y, %Y
10
ret i32 %Z
11
}