summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/byval7.ll
blob: 6b64c6ce4dabd147374adc8a1f0affcbba183684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | egrep {add|lea} | grep 16

	%struct.S = type { <2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
                           <2 x i64> }

define i32 @main() nounwind  {
entry:
	%s = alloca %struct.S		; <%struct.S*> [#uses=2]
	%tmp15 = getelementptr %struct.S* %s, i32 0, i32 0		; <<2 x i64>*> [#uses=1]
	store <2 x i64> < i64 8589934595, i64 1 >, <2 x i64>* %tmp15, align 16
	call void @t( i32 1, %struct.S* byval  %s ) nounwind 
	ret i32 0
}

declare void @t(i32, %struct.S* byval )