8625704ad8
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
19 lines
397 B
LLVM
19 lines
397 B
LLVM
;RUN: llc -march=sparc < %s | FileCheck %s
|
|
|
|
%struct.foo_t = type { i32, i32, i32 }
|
|
|
|
@s = internal unnamed_addr global %struct.foo_t { i32 10, i32 20, i32 30 }
|
|
|
|
define i32 @test() nounwind {
|
|
entry:
|
|
;CHECK-LABEL: test:
|
|
;CHECK: st
|
|
;CHECK: st
|
|
;CHECK: st
|
|
;CHECK: bar
|
|
%0 = tail call i32 @bar(%struct.foo_t* byval @s) nounwind
|
|
ret i32 %0
|
|
}
|
|
|
|
declare i32 @bar(%struct.foo_t* byval)
|