mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
cabfea2a58
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81540 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
227 B
LLVM
12 lines
227 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 = getresult {i32, i32} %X, 0
|
|
%Z = add i32 %Y, %Y
|
|
ret i32 %Z
|
|
}
|