Daniel Cederman | 0c597ca | 2018-08-17 10:40:00 +0000 | [diff] [blame] | 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() |