summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Generic/2010-11-04-BigByval.ll
blob: 740ae2caa1980682af1c45e6b2136c1115993205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc < %s
; PR7170

; The test is intentionally disabled only for the NVPTX target
; (i.e. not for nvptx-registered-target feature) due to excessive runtime.
; Please note, that there are NVPTX special testcases for "byval"
; UNSUPPORTED: target=nvptx{{.*}}

%big = type [131072 x i8]

declare void @foo(ptr byval(%big) align 1)

define void @bar(ptr byval(%big) align 1 %x) {
  call void @foo(ptr byval(%big) align 1 %x)
  ret void
}