xref: /llvm-project/clang/test/CodeGen/X86/avx512fp16-complex-abi.c (revision 39db5e1ed87363a9ffea81e53520b542201b3262)
1 // RUN: %clang_cc1 -triple i386-unknown-linux-gnu -target-feature +avx512fp16 -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK
2 
3 // Return value should be passed in <2 x half> so the backend will use xmm0
f16(_Complex _Float16 A,_Complex _Float16 B)4 _Complex _Float16 f16(_Complex _Float16 A, _Complex _Float16 B) {
5   // CHECK-LABEL: define{{.*}}<2 x half> @f16(ptr noundef byval({ half, half }) align 4 %{{.*}}, ptr noundef byval({ half, half }) align 4 %{{.*}})
6   return A + B;
7 }
8