Let each target decide byval alignment. For X86, it's 4-byte unless the aggregare...
[oota-llvm.git] / test / CodeGen / X86 / byval7.ll
1 ; RUN: llvm-as < %s | llc -march=x86 | grep add | grep 16
2
3         %struct.S = type { <2 x i64> }
4
5 define i32 @main() nounwind  {
6 entry:
7         %s = alloca %struct.S           ; <%struct.S*> [#uses=2]
8         %tmp15 = getelementptr %struct.S* %s, i32 0, i32 0              ; <<2 x i64>*> [#uses=1]
9         store <2 x i64> < i64 8589934595, i64 1 >, <2 x i64>* %tmp15, align 16
10         call void @t( i32 1, %struct.S* byval  %s ) nounwind 
11         ret i32 0
12 }
13
14 declare void @t(i32, %struct.S* byval )