mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
4bf7d5872e
Upgrade of the IR text tests should be the only thing blocking making typed byval mandatory. Partially done through regex and partially manual.
19 lines
427 B
LLVM
19 lines
427 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(%struct.foo_t) @s) nounwind
|
|
ret i32 %0
|
|
}
|
|
|
|
declare i32 @bar(%struct.foo_t* byval(%struct.foo_t))
|