xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/fastcc3struct.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK: movl {{.}}12, %eax
4*9880d681SAndroid Build Coastguard Worker; CHECK: movl {{.}}24, %edx
5*9880d681SAndroid Build Coastguard Worker; CHECK: movl {{.}}48, %ecx
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker%0 = type { i32, i32, i32 }
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine internal fastcc %0 @ReturnBigStruct() nounwind readnone {
10*9880d681SAndroid Build Coastguard Workerentry:
11*9880d681SAndroid Build Coastguard Worker  %0 = insertvalue %0 zeroinitializer, i32 12, 0
12*9880d681SAndroid Build Coastguard Worker  %1 = insertvalue %0 %0, i32 24, 1
13*9880d681SAndroid Build Coastguard Worker  %2 = insertvalue %0 %1, i32 48, 2
14*9880d681SAndroid Build Coastguard Worker  ret %0 %2
15*9880d681SAndroid Build Coastguard Worker}
16*9880d681SAndroid Build Coastguard Worker
17