mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Implement support for byval arguments in Sparc backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
18
test/CodeGen/SPARC/2011-01-21-ByValArgs.ll
Normal file
18
test/CodeGen/SPARC/2011-01-21-ByValArgs.ll
Normal file
@@ -0,0 +1,18 @@
|
||||
;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)
|
Reference in New Issue
Block a user