mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
b961ae25b4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199932 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
447 B
LLVM
21 lines
447 B
LLVM
; RUN: opt %s -argpromotion -S -o - | FileCheck %s
|
|
; PR14710
|
|
|
|
%pair = type { i32, i32 }
|
|
|
|
declare i8* @foo(%pair*)
|
|
|
|
define internal void @bar(%pair* byval %Data) {
|
|
; CHECK: define internal void @bar(i32 %Data.0, i32 %Data.1)
|
|
; CHECK: %Data = alloca %pair
|
|
; CHECK-NOT: tail
|
|
; CHECK: call i8* @foo(%pair* %Data)
|
|
tail call i8* @foo(%pair* %Data)
|
|
ret void
|
|
}
|
|
|
|
define void @zed(%pair* byval %Data) {
|
|
call void @bar(%pair* byval %Data)
|
|
ret void
|
|
}
|