mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
4bf7d5872e
Upgrade of the IR text tests should be the only thing blocking making typed byval mandatory. Partially done through regex and partially manual.
24 lines
618 B
LLVM
24 lines
618 B
LLVM
; RUN: llc -o - %s | FileCheck %s
|
|
target triple="arm--"
|
|
|
|
@glob = external global i32*
|
|
|
|
declare void @bar(i32*, [20000 x i8]* byval([20000 x i8]))
|
|
|
|
; CHECK-LABEL: foo:
|
|
; We should see the stack getting additional alignment
|
|
; CHECK: sub sp, sp, #16
|
|
; CHECK: bic sp, sp, #31
|
|
; And a base pointer getting used.
|
|
; CHECK: mov r6, sp
|
|
; Which is passed to the call
|
|
; CHECK: mov r0, r6
|
|
; CHECK: bl bar
|
|
define void @foo([20000 x i8]* %addr) {
|
|
%tmp = alloca [4 x i32], align 32
|
|
%tmp0 = getelementptr [4 x i32], [4 x i32]* %tmp, i32 0, i32 0
|
|
call void @bar(i32* %tmp0, [20000 x i8]* byval([20000 x i8]) %addr)
|
|
ret void
|
|
}
|
|
|