llvm-for-llvmta/test/CodeGen/SPARC/sret-secondary.ll

9 lines
220 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: not --crash llc -march=sparc < %s -o /dev/null 2>&1 | FileCheck %s
; CHECK: sparc only supports sret on the first parameter
define void @foo(i32 %a, i32* sret(i32) %out) {
store i32 %a, i32* %out
ret void
}