1 ; RUN: llc --march=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(i8* %c, ...)
93 define 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) #0 {
95 %ss1.addr = alloca %struct.SmallStruct_1b*, align 8
96 %ss2.addr = alloca %struct.SmallStruct_1b*, align 8
97 %ss3.addr = alloca %struct.SmallStruct_1b*, align 8
98 %ss4.addr = alloca %struct.SmallStruct_1b*, align 8
99 %ss5.addr = alloca %struct.SmallStruct_1b*, align 8
100 %ss6.addr = alloca %struct.SmallStruct_1b*, align 8
101 %ss7.addr = alloca %struct.SmallStruct_1b*, align 8
102 %ss8.addr = alloca %struct.SmallStruct_1b*, align 8
103 %ss9.addr = alloca %struct.SmallStruct_1b*, align 8
104 store %struct.SmallStruct_1b* %ss1, %struct.SmallStruct_1b** %ss1.addr, align 8
105 store %struct.SmallStruct_1b* %ss2, %struct.SmallStruct_1b** %ss2.addr, align 8
106 store %struct.SmallStruct_1b* %ss3, %struct.SmallStruct_1b** %ss3.addr, align 8
107 store %struct.SmallStruct_1b* %ss4, %struct.SmallStruct_1b** %ss4.addr, align 8
108 store %struct.SmallStruct_1b* %ss5, %struct.SmallStruct_1b** %ss5.addr, align 8
109 store %struct.SmallStruct_1b* %ss6, %struct.SmallStruct_1b** %ss6.addr, align 8
110 store %struct.SmallStruct_1b* %ss7, %struct.SmallStruct_1b** %ss7.addr, align 8
111 store %struct.SmallStruct_1b* %ss8, %struct.SmallStruct_1b** %ss8.addr, align 8
112 store %struct.SmallStruct_1b* %ss9, %struct.SmallStruct_1b** %ss9.addr, align 8
113 %0 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss1.addr, align 8
114 %1 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss2.addr, align 8
115 %2 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss3.addr, align 8
116 %3 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss4.addr, align 8
117 %4 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss5.addr, align 8
118 %5 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss6.addr, align 8
119 %6 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss7.addr, align 8
120 %7 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss8.addr, align 8
121 %8 = load %struct.SmallStruct_1b*, %struct.SmallStruct_1b** %ss9.addr, align 8
122 %9 = bitcast %struct.SmallStruct_1b* %0 to { i8 }*
123 %10 = getelementptr { i8 }, { i8 }* %9, i32 0, i32 0
124 %11 = load i8, i8* %10, align 1
125 %12 = bitcast %struct.SmallStruct_1b* %1 to { i8 }*
126 %13 = getelementptr { i8 }, { i8 }* %12, i32 0, i32 0
127 %14 = load i8, i8* %13, align 1
128 %15 = bitcast %struct.SmallStruct_1b* %2 to { i8 }*
129 %16 = getelementptr { i8 }, { i8 }* %15, i32 0, i32 0
130 %17 = load i8, i8* %16, align 1
131 %18 = bitcast %struct.SmallStruct_1b* %3 to { i8 }*
132 %19 = getelementptr { i8 }, { i8 }* %18, i32 0, i32 0
133 %20 = load i8, i8* %19, align 1
134 %21 = bitcast %struct.SmallStruct_1b* %4 to { i8 }*
135 %22 = getelementptr { i8 }, { i8 }* %21, i32 0, i32 0
136 %23 = load i8, i8* %22, align 1
137 %24 = bitcast %struct.SmallStruct_1b* %5 to { i8 }*
138 %25 = getelementptr { i8 }, { i8 }* %24, i32 0, i32 0
139 %26 = load i8, i8* %25, align 1
140 %27 = bitcast %struct.SmallStruct_1b* %6 to { i8 }*
141 %28 = getelementptr { i8 }, { i8 }* %27, i32 0, i32 0
142 %29 = load i8, i8* %28, align 1
143 %30 = bitcast %struct.SmallStruct_1b* %7 to { i8 }*
144 %31 = getelementptr { i8 }, { i8 }* %30, i32 0, i32 0
145 %32 = load i8, i8* %31, align 1
146 %33 = bitcast %struct.SmallStruct_1b* %8 to { i8 }*
147 %34 = getelementptr { i8 }, { i8 }* %33, i32 0, i32 0
148 %35 = load i8, i8* %34, align 1
149 call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8 inreg %11, i8 inreg %14, i8 inreg %17, i8 inreg %20, i8 inreg %23, i8 inreg %26, i8 inreg %29, i8 inreg %32, i8 inreg %35)
151 ; CHECK-LABEL: smallStruct_1b_x9:
152 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
153 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
154 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
155 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
156 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
157 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
158 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
159 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
160 ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56