1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/CodeGen/SPARC/2011-01-21-ByValArgs.ll
Venkatraman Govindaraju 6a083c355b Implement support for byval arguments in Sparc backend.
llvm-svn: 123974
2011-01-21 14:00:01 +00:00

19 lines
390 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: 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)