llvm-project/llvm/test/CodeGen/PowerPC/aix-byval-param.ll
Yuanfang Chen 6e24c6037f Revert "[Support] make report_fatal_error abort instead of exit"
This reverts commit 647c3f4e47de8a850ffcaa897db68702d8d2459a.

Got bots failure from sanitizer-windows and maybe others.
2020-01-15 17:52:25 -08:00

17 lines
476 B
LLVM

; 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, i32 }
define void @bar() {
entry:
%s1 = alloca %struct.S, align 4
%agg.tmp = alloca %struct.S, align 4
call void @foo(%struct.S* byval(%struct.S) align 4 %agg.tmp)
ret void
}
declare void @foo(%struct.S* byval(%struct.S) align 4)
; CHECK: LLVM ERROR: Passing structure by value is unimplemented.