repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
CodeGen
/
SPARC
/
cast-sret-func.ll
blob
1503e278c7da4410c824eeca94633357a3e848b0
1
; RUN: llc < %s -march=sparc
2
3
; CHECK: call func
4
; CHECK: st %i0, [%sp+64]
5
; CHECK: unimp 8
6
7
%struct = type { i32, i32 }
8
9
define void @test() nounwind {
10
entry:
11
%tmp = alloca %struct, align 4
12
call void bitcast (void ()* @func to void (%struct*)*)
13
(%struct* nonnull sret %tmp)
14
ret void
15
}
16
17
declare void @func()