1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=X64
13 ; Win64 has not supported byval yet.
15 ; RUN: llc < %s -march=x86 | FileCheck %s -check-prefix=X32
27 %struct.s = type { i16, i16, i16, i16, i16, i16, i16, i16,
28 i16, i16, i16, i16, i16, i16, i16, i16,
29 i16, i16, i16, i16, i16, i16, i16, i16,
30 i16, i16, i16, i16, i16, i16, i16, i16,
31 i16, i16, i16, i16, i16, i16, i16, i16,
32 i16, i16, i16, i16, i16, i16, i16, i16,
33 i16, i16, i16, i16, i16, i16, i16, i16,
34 i16, i16, i16, i16, i16, i16, i16, i16,
38 define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3,
39 i16 signext %a4, i16 signext %a5, i16 signext %a6) nounwind {
41 %a = alloca %struct.s, align 16
42 %tmp = getelementptr %struct.s* %a, i32 0, i32 0
43 store i16 %a1, i16* %tmp, align 16
44 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 1
45 store i16 %a2, i16* %tmp2, align 16
46 %tmp4 = getelementptr %struct.s* %a, i32 0, i32 2
47 store i16 %a3, i16* %tmp4, align 16
48 %tmp6 = getelementptr %struct.s* %a, i32 0, i32 3
49 store i16 %a4, i16* %tmp6, align 16
50 %tmp8 = getelementptr %struct.s* %a, i32 0, i32 4
51 store i16 %a5, i16* %tmp8, align 16
52 %tmp10 = getelementptr %struct.s* %a, i32 0, i32 5
53 store i16 %a6, i16* %tmp10, align 16
54 call void @f( %struct.s* byval %a )
55 call void @f( %struct.s* byval %a )
59 declare void @f(%struct.s* byval)