]> granicus.if.org Git - clang/commitdiff
[X86] NFC Include immintrin.h in CodeGen tests
authorGabor Buella <gabor.buella@intel.com>
Thu, 24 May 2018 07:09:08 +0000 (07:09 +0000)
committerGabor Buella <gabor.buella@intel.com>
Thu, 24 May 2018 07:09:08 +0000 (07:09 +0000)
Following r333110:
"Move all Intel defined intrinsic includes into immintrin.h"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333160 91177308-0d34-0410-b5e6-96231b3b80d8

28 files changed:
test/CodeGen/adx-builtins.c
test/CodeGen/avx-builtins.c
test/CodeGen/avx2-builtins.c
test/CodeGen/bmi-builtins.c
test/CodeGen/bmi2-builtins.c
test/CodeGen/builtin-clflushopt.c
test/CodeGen/builtin-clwb.c
test/CodeGen/builtin-movdir.c
test/CodeGen/builtin-wbnoinvd.c
test/CodeGen/cldemote.c
test/CodeGen/f16c-builtins.c
test/CodeGen/fsgsbase-builtins.c
test/CodeGen/lzcnt-builtins.c
test/CodeGen/mmx-builtins.c
test/CodeGen/popcnt-builtins.c
test/CodeGen/ptwrite.c
test/CodeGen/rdpid-builtins.c
test/CodeGen/rdrand-builtins.c
test/CodeGen/sse-builtins.c
test/CodeGen/sse2-builtins.c
test/CodeGen/sse3-builtins.c
test/CodeGen/sse41-builtins.c
test/CodeGen/sse42-builtins.c
test/CodeGen/ssse3-builtins.c
test/CodeGen/waitpkg.c
test/CodeGen/x86-nontemporal.c
test/Headers/pconfigintin.c
test/Headers/sgxintrin.c

index 8738c5d1771558856270701b8191aba8fb8a5f93..ac33367d0ebd18511d50b24034580438f7af2ea3 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ffreestanding -target-feature +adx -emit-llvm -o - %s | FileCheck %s
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 unsigned char test_addcarryx_u32(unsigned char __cf, unsigned int __x,
                                  unsigned int __y, unsigned int *__p) {
index 84afd64ca0444c333e288c918a558018fd03ee39..32a11a1fef94d8fadda59356b8592509cc6fdd7a 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll
 
index 15a17628f41a05f156557e8f4536fb66548a5243..02ddb4d5fc4364061212ca4c5db8fbee8b5b2da9 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx2 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll
 
index f78e3fdd4a1753f640e97d6169287a3a4a236e0b..91271f0b359958d5c24d4b3781c0c2d2c52ae134 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +bmi -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/bmi-intrinsics-fast-isel.ll
 
index 3a5d5e756ddb9d7d3045a31eb647447fa1a65c5b..9cce92474c85d83da34768c0a0ac2bb5f1cf7932 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=i386-apple-darwin -target-feature +bmi2 -emit-llvm -o - | FileCheck %s --check-prefix=B32
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 unsigned int test_bzhi_u32(unsigned int __X, unsigned int __Y) {
   // CHECK: @llvm.x86.bmi.bzhi.32
index f82ac4638f40a05b5fc01d72929b50dbd2599f25..4bf6f7efcc1f17bc54efede6dce581bbc0170f10 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clflushopt  -emit-llvm -o - -Wall -Werror | FileCheck %s
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 void test_mm_clflushopt(char * __m) {
   //CHECK-LABEL: @test_mm_clflushopt
index 96d00a6a7ca182f23fe6a68cb8a9d691bb010bed..11c37c17694cf9be8754b473b78c4ed888700c57 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clwb  -emit-llvm -o - -Wall -Werror | FileCheck %s
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 void test_mm_clwb(const void *__m) {
   //CHECK-LABEL: @test_mm_clwb
index c805a0518448338e4798c40a461e119092644a82..958690469a80f1c027ba519e085ac3d576f5fcf2 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding -Wall -pedantic -triple x86_64-unknown-unknown -target-feature +movdiri -target-feature +movdir64b %s -emit-llvm -o - | FileCheck %s --check-prefix=X86_64 --check-prefix=CHECK
 // RUN: %clang_cc1 -ffreestanding -Wall -pedantic -triple i386-unknown-unknown -target-feature +movdiri -target-feature +movdir64b %s -emit-llvm -o - | FileCheck %s --check-prefix=X86 --check-prefix=CHECK
 
-#include <x86intrin.h>
+#include <immintrin.h>
 #include <stdint.h>
 
 void test_directstore32(void *dst, uint32_t value) {
index 008a7598830aa4b8ac3393c726b2e5a31b7b4d8a..5bea5acf5b090d7b6ae759712cbdde829eb53a7f 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +wbnoinvd -emit-llvm -o - -Wall -Werror | FileCheck %s
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 void test_wbnoinvd(void) {
   //CHECK-LABEL: @test_wbnoinvd
index 54f420d47e9d9396a4074bb55b02896cb01221ae..8c7bdf5393330f33c42bac4c2bc2d33ed43d8630 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +cldemote -emit-llvm -o - -Wall -Werror | FileCheck %s
 // RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +cldemote -emit-llvm -o - -Wall -Werror | FileCheck %s
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 void test_cldemote(const void *p) {
   //CHECK-LABEL: @test_cldemote
index e4933e9f9bf362d64a0e842c85921d286493497d..ce14187cdad39bf71db3bcd8b6ac308281e5ad1d 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +f16c -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 float test_cvtsh_ss(unsigned short a) {
   // CHECK-LABEL: test_cvtsh_ss
index 25f4b311a5960601ca183534c7c8aaeab5e7935e..587ad84e3f51a01f438fefb0e217ac2bc404dc68 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +fsgsbase -emit-llvm -o - | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 unsigned int test_readfsbase_u32()
 {
index cc5d458c763022aa0bb9da76707d34e1b1504ec1..b1414a3b56f218cdc8735b0eb3b21c4dd63efbaf 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +lzcnt -emit-llvm -o - | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 unsigned short test__lzcnt16(unsigned short __X)
 {
index cd725e22b83c8ef0d2a08adf5bdcbb53e283dfce..ab01c7bd5a5214aa6c735d53297c71cee7b6a313 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +ssse3 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 __m64 test_mm_abs_pi8(__m64 a) {
   // CHECK-LABEL: test_mm_abs_pi8
index 656a20f98605f88c5e990a486853c3188ed22558..1fdb43339a80addea09acc1826258aed8618ba55 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +popcnt -emit-llvm -o - | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 unsigned int test_mm_popcnt_u32(unsigned int __X) {
   //CHECK: call i32 @llvm.ctpop.i32
index b20b15a39746e5715cdce1139577884d2575e760..a34ed741b5ff25b948bfe42cb44d8f524cc2c076 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +ptwrite -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s --check-prefix=X86 --check-prefix=X86_64
 // RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +ptwrite -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s --check-prefix=X86
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 #include <stdint.h>
 
index 35516b05bd46a0716040dd0169a658f33569487d..0816bd07ad1d72b7ae1b6745aa62e088abc16e5b 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +rdpid -emit-llvm -o - %s | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 unsigned int test_rdpid_u32(void) {
 // CHECK-LABEL: @test_rdpid_u32
index 936502b77483bd5d876b68c8b1648cb067a37a82..44a38a048e96bd2b05abf27a1845a9a457aafcc3 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +rdrnd -target-feature +rdseed -emit-llvm -o - %s | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 int rdrand16(unsigned short *p) {
   return _rdrand16_step(p);
index 28b4f2cae1f067c5d3cbf1b4385d4a6c9dcb61a9..7e446ba2b02c15997c1723c77f34b6bf751b4648 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll
 
index 8e39866a4f8e823fa80382f161c889fbf516673f..f7094b2fbd0c4e715b2d0c0201ffa0ca8b65a3e6 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse2 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
 
index 46a7bbbb91e27e3d567f7a4bd5067e6422889185..cf3e9526c377074312faeda2e96ab6a88662c6c3 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse3 -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse3-intrinsics-fast-isel.ll
 
index 6cd742b363fb19ea0df1b0c8b743021e397390c9..a99ecdabe44146d5d0de4457625d8b9cf6814a17 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll
 
index 523db1a3416edaad577c7ae3f9caff36848ce826..d94d12452df7db5e0e8e491af6c0b0d85e1b32e4 100644 (file)
@@ -2,7 +2,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.2 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse42-intrinsics-fast-isel.ll
 
index 4fd22aa79b46e4084c4279d30f5e2fe0c04714ce..4e6d401772be4424a93869fe7ac0f3ba9b891942 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +ssse3 -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // NOTE: This should match the tests in llvm/test/CodeGen/X86/ssse3-intrinsics-fast-isel.ll
 
index e4ac1cd6636c34454b0320d94300c0bb0fd1394c..250e74fdd9fca946143949aaa720cddbf03452ec 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -emit-llvm -target-feature +waitpkg -Wall -pedantic -o - | FileCheck %s
 // RUN: %clang_cc1 %s -ffreestanding -triple i386-unknown-unknown -emit-llvm -target-feature +waitpkg -Wall -pedantic -o - | FileCheck %s
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 #include <stddef.h>
 #include <stdint.h>
index 5e9e42c9f204db5de0fed3f3f5aa11567dac3a74..cb72f41950a8c22b2d2939fe3d6b7652e4fba504 100644 (file)
@@ -4,7 +4,7 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -target-feature +avx -target-feature +avx2 -target-feature +avx512f -emit-llvm -o - -Wall -Werror -fmax-type-align=16 | FileCheck %s --check-prefix=CHECK
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -target-feature +avx -target-feature +avx2 -target-feature +avx512f -fno-signed-char -emit-llvm -o - -Wall -Werror -fmax-type-align=16 | FileCheck %s --check-prefix=CHECK
 
-#include <x86intrin.h>
+#include <immintrin.h>
 
 // (PR33830) Tests ensure the correct alignment of non-temporal load/stores on darwin targets where fmax-type-align is set to 16.
 
index e9925fc7bacd15198351c53c68fd0e162a57c881..43a30acbdcc28e56f20b9d57190d3712f1090259 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -target-feature +pconfig -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-64
 // RUN: %clang_cc1 %s -ffreestanding -triple i386 -target-feature +pconfig -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-32
 
-#include <x86intrin.h>
+#include <immintrin.h>
 #include <stdint.h>
 #include <stddef.h>
 
index 88038478751935a5a57ea3785792d21bff22249c..ce0d408f5d65e1fe4327612996cbfdd40367f100 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -target-feature +sgx -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-64
 // RUN: %clang_cc1 %s -ffreestanding -triple i386 -target-feature +sgx -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-32
 
-#include <x86intrin.h>
+#include <immintrin.h>
 #include <stdint.h>
 #include <stddef.h>