1 ; RUN: llc --mtriple=mips64 -mcpu=mips64r2 < %s | FileCheck %s
3 ; Generated from the C program:
8 ; struct SmallStruct_1b {
12 ; struct SmallStruct_2b {
17 ; struct SmallStruct_3b {
23 ; struct SmallStruct_4b {
30 ; struct SmallStruct_5b {
38 ; struct SmallStruct_6b {
47 ; struct SmallStruct_7b {
57 ; struct SmallStruct_8b {
68 ; struct SmallStruct_9b {
80 ; void varArgF_SmallStruct(char* c, ...);
82 ; void smallStruct_1b_x9(struct SmallStruct_1b* ss1, struct SmallStruct_1b* ss2, struct SmallStruct_1b* ss3, struct SmallStruct_1b* ss4, struct SmallStruct_1b* ss5, struct SmallStruct_1b* ss6, struct SmallStruct_1b* ss7, struct SmallStruct_1b* ss8, struct SmallStruct_1b* ss9)
84 ; varArgF_SmallStruct("", *ss1, *ss2, *ss3, *ss4, *ss5, *ss6, *ss7, *ss8, *ss9);
87 %struct.SmallStruct_1b = type { i8 }
89 @.str = private unnamed_addr constant [3 x i8] c"01\00", align 1
91 declare void @varArgF_SmallStruct(ptr %c, ...)
93 define void @smallStruct_1b_x9(ptr %ss1, ptr %ss2, ptr %ss3, ptr %ss4, ptr %ss5, ptr %ss6, ptr %ss7, ptr %ss8, ptr %ss9) #0 {
95 %ss1.addr = alloca ptr, align 8
96 %ss2.addr = alloca ptr, align 8
97 %ss3.addr = alloca ptr, align 8
98 %ss4.addr = alloca ptr, align 8
99 %ss5.addr = alloca ptr, align 8
100 %ss6.addr = alloca ptr, align 8
101 %ss7.addr = alloca ptr, align 8
102 %ss8.addr = alloca ptr, align 8
103 %ss9.addr = alloca ptr, align 8
104 store ptr %ss1, ptr %ss1.addr, align 8
105 store ptr %ss2, ptr %ss2.addr, align 8
106 store ptr %ss3, ptr %ss3.addr, align 8
107 store ptr %ss4, ptr %ss4.addr, align 8
108 store ptr %ss5, ptr %ss5.addr, align 8
109 store ptr %ss6, ptr %ss6.addr, align 8
110 store ptr %ss7, ptr %ss7.addr, align 8
111 store ptr %ss8, ptr %ss8.addr, align 8
112 store ptr %ss9, ptr %ss9.addr, align 8
113 %0 = load ptr, ptr %ss1.addr, align 8
114 %1 = load ptr, ptr %ss2.addr, align 8
115 %2 = load ptr, ptr %ss3.addr, align 8
116 %3 = load ptr, ptr %ss4.addr, align 8
117 %4 = load ptr, ptr %ss5.addr, align 8
118 %5 = load ptr, ptr %ss6.addr, align 8
119 %6 = load ptr, ptr %ss7.addr, align 8
120 %7 = load ptr, ptr %ss8.addr, align 8
121 %8 = load ptr, ptr %ss9.addr, align 8
122 %9 = load i8, ptr %0, align 1
123 %10 = load i8, ptr %1, align 1
124 %11 = load i8, ptr %2, align 1
125 %12 = load i8, ptr %3, align 1
126 %13 = load i8, ptr %4, align 1
127 %14 = load i8, ptr %5, align 1
128 %15 = load i8, ptr %6, align 1
129 %16 = load i8, ptr %7, align 1
130 %17 = load i8, ptr %8, align 1
131 call void (ptr, ...) @varArgF_SmallStruct(ptr @.str, i8 inreg %9, i8 inreg %10, i8 inreg %11, i8 inreg %12, i8 inreg %13, i8 inreg %14, i8 inreg %15, i8 inreg %16, i8 inreg %17)
133 ; CHECK-LABEL: smallStruct_1b_x9:
134 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
135 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
136 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
137 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
138 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
139 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
140 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
141 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
142 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56