blob: 408b13d70a38f8cc0b8531ac4011c554919d3581 [file] [log] [blame]
Venkatraman Govindaraju05947892011-01-21 14:00:01 +00001;RUN: llc -march=sparc < %s | FileCheck %s
2
3%struct.foo_t = type { i32, i32, i32 }
4
5@s = internal unnamed_addr global %struct.foo_t { i32 10, i32 20, i32 30 }
6
7define i32 @test() nounwind {
8entry:
Stephen Lin6f36b452013-07-18 22:47:09 +00009;CHECK-LABEL: test:
Venkatraman Govindaraju05947892011-01-21 14:00:01 +000010;CHECK: st
11;CHECK: st
12;CHECK: st
13;CHECK: bar
14 %0 = tail call i32 @bar(%struct.foo_t* byval @s) nounwind
15 ret i32 %0
16}
17
18declare i32 @bar(%struct.foo_t* byval)