summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/cast-sret-func.ll
blob: 1503e278c7da4410c824eeca94633357a3e848b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc < %s -march=sparc

; CHECK: call func
; CHECK: st %i0, [%sp+64]
; CHECK: unimp 8

%struct = type { i32, i32 }

define void @test() nounwind {
entry:
  %tmp = alloca %struct, align 4
  call void bitcast (void ()* @func to void (%struct*)*)
    (%struct* nonnull sret %tmp)
  ret void
}

declare void @func()
OpenPOWER on IntegriCloud