mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 14:40:39 +00:00
424545e950
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133247 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
230 B
LLVM
12 lines
230 B
LLVM
; RUN: opt < %s -sccp -S | grep {ret i32 %Z}
|
|
; rdar://5778210
|
|
|
|
declare {i32, i32} @bar(i32 %A)
|
|
|
|
define i32 @foo() {
|
|
%X = call {i32, i32} @bar(i32 17)
|
|
%Y = extractvalue {i32, i32} %X, 0
|
|
%Z = add i32 %Y, %Y
|
|
ret i32 %Z
|
|
}
|