Reid Kleckner | 1232e27 | 2013-03-26 16:56:59 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fms-extensions -ffreestanding -target-feature +avx -emit-llvm %s -o - -cxx-abi microsoft -triple=i686-pc-win32 | FileCheck %s |
| 2 | |
| 3 | #include <xmmintrin.h> |
| 4 | #include <emmintrin.h> |
| 5 | #include <immintrin.h> |
| 6 | |
| 7 | void foo64(__m64) {} |
| 8 | // CHECK: define void @"\01?foo64@@YAXT__m64@@@Z" |
| 9 | |
| 10 | void foo128(__m128) {} |
| 11 | // CHECK: define void @"\01?foo128@@YAXT__m128@@@Z" |
| 12 | |
| 13 | void foo128d(__m128d) {} |
| 14 | // CHECK: define void @"\01?foo128d@@YAXU__m128d@@@Z" |
| 15 | |
| 16 | void foo128i(__m128i) {} |
| 17 | // CHECK: define void @"\01?foo128i@@YAXT__m128i@@@Z" |
| 18 | |
| 19 | void foo256(__m256) {} |
| 20 | // CHECK: define void @"\01?foo256@@YAXT__m256@@@Z" |
| 21 | |
| 22 | void foo256d(__m256d) {} |
| 23 | // CHECK: define void @"\01?foo256d@@YAXU__m256d@@@Z" |
| 24 | |
| 25 | void foo256i(__m256i) {} |
| 26 | // CHECK: define void @"\01?foo256i@@YAXT__m256i@@@Z" |
| 27 | |
| 28 | // We have a custom mangling for vector types not standardized by Intel. |
| 29 | void foov8hi(__v8hi) {} |
| 30 | // CHECK: define void @"\01?foov8hi@@YAXT__clang_vec8_F@@@Z" |
| 31 | |
| 32 | // Clang does not support vectors of complex types, so we can't test the |
| 33 | // mangling of them. |