aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle-ms-vector-types.cpp
blob: aca492918a1e78deba54c17cb7ca21a55a5a5456 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// RUN: %clang_cc1 -fms-extensions -ffreestanding -target-feature +avx -emit-llvm %s -o - -triple=i686-pc-win32 | FileCheck %s

#include <xmmintrin.h>
#include <emmintrin.h>
#include <immintrin.h>

void foo64(__m64) {}
// CHECK: define void @"\01?foo64@@YAXT__m64@@@Z"

void foo128(__m128) {}
// CHECK: define void @"\01?foo128@@YAXT__m128@@@Z"

void foo128d(__m128d) {}
// CHECK: define void @"\01?foo128d@@YAXU__m128d@@@Z"

void foo128i(__m128i) {}
// CHECK: define void @"\01?foo128i@@YAXT__m128i@@@Z"

void foo256(__m256) {}
// CHECK: define void @"\01?foo256@@YAXT__m256@@@Z"

void foo256d(__m256d) {}
// CHECK: define void @"\01?foo256d@@YAXU__m256d@@@Z"

void foo256i(__m256i) {}
// CHECK: define void @"\01?foo256i@@YAXT__m256i@@@Z"

// We have a custom mangling for vector types not standardized by Intel.
void foov8hi(__v8hi) {}
// CHECK: define void @"\01?foov8hi@@YAXT__clang_vec8_F@@@Z"

// Clang does not support vectors of complex types, so we can't test the
// mangling of them.