1 ; RUN: llc < %s -mtriple=x86_64-linux -mattr=-avx | FileCheck %s -check-prefix=X64
13 ; Win64 has not supported byval yet.
15 ; RUN: llc < %s -mtriple=i686-- -mattr=-avx | FileCheck %s -check-prefix=X32
27 %struct.s = type { i64, i64, i64, i64, i64, i64, i64, i64,
28 i64, i64, i64, i64, i64, i64, i64, i64,
31 define void @g(i64 %a, i64 %b, i64 %c) {
33 %d = alloca %struct.s, align 16
34 %tmp = getelementptr %struct.s, %struct.s* %d, i32 0, i32 0
35 store i64 %a, i64* %tmp, align 16
36 %tmp2 = getelementptr %struct.s, %struct.s* %d, i32 0, i32 1
37 store i64 %b, i64* %tmp2, align 16
38 %tmp4 = getelementptr %struct.s, %struct.s* %d, i32 0, i32 2
39 store i64 %c, i64* %tmp4, align 16
40 call void @f( %struct.s* byval %d )
41 call void @f( %struct.s* byval %d )
45 declare void @f(%struct.s* byval)