xref: /aosp_15_r20/external/clang/test/CodeGen/mips-byval-arg.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -triple mipsel-unknown-linux -O3 -S -o - -emit-llvm %s | FileCheck %s -check-prefix=O32
2*67e74705SXin Li // RUN: %clang_cc1 -triple mips64el-unknown-linux -O3 -S -target-abi n64 -o - -emit-llvm %s | FileCheck %s -check-prefix=N64
3*67e74705SXin Li 
4*67e74705SXin Li typedef struct {
5*67e74705SXin Li   float f[3];
6*67e74705SXin Li } S0;
7*67e74705SXin Li 
8*67e74705SXin Li extern void foo2(S0);
9*67e74705SXin Li 
10*67e74705SXin Li // O32-LABEL: define void @foo1(i32 inreg %a0.coerce0, i32 inreg %a0.coerce1, i32 inreg %a0.coerce2)
11*67e74705SXin Li // N64-LABEL: define void @foo1(i64 inreg %a0.coerce0, i32 inreg %a0.coerce1)
12*67e74705SXin Li 
foo1(S0 a0)13*67e74705SXin Li void foo1(S0 a0) {
14*67e74705SXin Li   foo2(a0);
15*67e74705SXin Li }
16