llvm.org GIT mirror llvm / master test / CodeGen / SPARC / sret-secondary.ll
master

Tree @master (Download .tar.gz)

sret-secondary.ll @masterraw · history · blame

1
2
3
4
5
6
7
8
; RUN: not 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 %out) {
  store i32 %a, i32* %out
  ret void
}