summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/aix-sret-param.ll
blob: 64dc2c4be48fd27f60a0a6cafcbb06240b70b4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: not llc -mtriple powerpc-ibm-aix-xcoff < %s 2>&1 | FileCheck %s
; RUN: not llc -mtriple powerpc64-ibm-aix-xcoff < %s 2>&1 | FileCheck %s

%struct.S = type { i32 }

define void @barv() {
entry:
  %tmp = alloca %struct.S, align 4
  call void @foo(%struct.S* sret %tmp)
  ret void
}

declare void @foo(%struct.S* sret)

; CHECK: LLVM ERROR: Struct return arguments are unimplemented.
OpenPOWER on IntegriCloud