llvm-project/clang/test/CodeGenCXX/aarch64-ms-mangle-mfp8.cpp
Momchil Velikov 97becb3205 [AArch64] Add MSVC mangling for the __mfp8 type (#124968)
Fixes #124907

(cherry picked from commit 7939ce6295e7fc0214cd307f97dfccc0cabde381)
2025-01-31 17:43:51 -08:00

15 lines
459 B
C++

// RUN: %clang_cc1 -triple aarch64-windows-msvc -emit-llvm -o - %s | FileCheck %s
typedef __mfp8 mf8;
typedef __attribute__((neon_vector_type(8))) __mfp8 mf8x8_t;
typedef __attribute__((neon_vector_type(16))) __mfp8 mf8x16_t;
// CHECK: "?f@@YAXU__mfp8@__clang@@@Z"
void f(mf8 v) {}
// CHECK: "?f@@YAXT?$__vector@U__mfp8@__clang@@$07@__clang@@@Z"
void f(mf8x8_t v) {}
// CHECK: "?f@@YAXT?$__vector@U__mfp8@__clang@@$0BA@@__clang@@@Z"
void f(mf8x16_t v) {}