view llvm/test/CodeGen/SPARC/cast-sret-func.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900 (2021-06-07)
parents 1d019706d866
children 2e18cbf3894f
line wrap: on
line source
; 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()