From: Gabor Buella Date: Thu, 24 May 2018 07:09:08 +0000 (+0000) Subject: [X86] NFC Include immintrin.h in CodeGen tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be604857d3a8f3e55fb99327b6214e076931f1ca;p=clang [X86] NFC Include immintrin.h in CodeGen tests 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 --- diff --git a/test/CodeGen/adx-builtins.c b/test/CodeGen/adx-builtins.c index 8738c5d177..ac33367d0e 100644 --- a/test/CodeGen/adx-builtins.c +++ b/test/CodeGen/adx-builtins.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ffreestanding -target-feature +adx -emit-llvm -o - %s | FileCheck %s -#include +#include unsigned char test_addcarryx_u32(unsigned char __cf, unsigned int __x, unsigned int __y, unsigned int *__p) { diff --git a/test/CodeGen/avx-builtins.c b/test/CodeGen/avx-builtins.c index 84afd64ca0..32a11a1fef 100644 --- a/test/CodeGen/avx-builtins.c +++ b/test/CodeGen/avx-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll diff --git a/test/CodeGen/avx2-builtins.c b/test/CodeGen/avx2-builtins.c index 15a17628f4..02ddb4d5fc 100644 --- a/test/CodeGen/avx2-builtins.c +++ b/test/CodeGen/avx2-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll diff --git a/test/CodeGen/bmi-builtins.c b/test/CodeGen/bmi-builtins.c index f78e3fdd4a..91271f0b35 100644 --- a/test/CodeGen/bmi-builtins.c +++ b/test/CodeGen/bmi-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/bmi-intrinsics-fast-isel.ll diff --git a/test/CodeGen/bmi2-builtins.c b/test/CodeGen/bmi2-builtins.c index 3a5d5e756d..9cce92474c 100644 --- a/test/CodeGen/bmi2-builtins.c +++ b/test/CodeGen/bmi2-builtins.c @@ -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 +#include unsigned int test_bzhi_u32(unsigned int __X, unsigned int __Y) { // CHECK: @llvm.x86.bmi.bzhi.32 diff --git a/test/CodeGen/builtin-clflushopt.c b/test/CodeGen/builtin-clflushopt.c index f82ac4638f..4bf6f7efcc 100644 --- a/test/CodeGen/builtin-clflushopt.c +++ b/test/CodeGen/builtin-clflushopt.c @@ -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 +#include void test_mm_clflushopt(char * __m) { //CHECK-LABEL: @test_mm_clflushopt diff --git a/test/CodeGen/builtin-clwb.c b/test/CodeGen/builtin-clwb.c index 96d00a6a7c..11c37c1769 100644 --- a/test/CodeGen/builtin-clwb.c +++ b/test/CodeGen/builtin-clwb.c @@ -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 +#include void test_mm_clwb(const void *__m) { //CHECK-LABEL: @test_mm_clwb diff --git a/test/CodeGen/builtin-movdir.c b/test/CodeGen/builtin-movdir.c index c805a05184..958690469a 100644 --- a/test/CodeGen/builtin-movdir.c +++ b/test/CodeGen/builtin-movdir.c @@ -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 +#include #include void test_directstore32(void *dst, uint32_t value) { diff --git a/test/CodeGen/builtin-wbnoinvd.c b/test/CodeGen/builtin-wbnoinvd.c index 008a759883..5bea5acf5b 100644 --- a/test/CodeGen/builtin-wbnoinvd.c +++ b/test/CodeGen/builtin-wbnoinvd.c @@ -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 +#include void test_wbnoinvd(void) { //CHECK-LABEL: @test_wbnoinvd diff --git a/test/CodeGen/cldemote.c b/test/CodeGen/cldemote.c index 54f420d47e..8c7bdf5393 100644 --- a/test/CodeGen/cldemote.c +++ b/test/CodeGen/cldemote.c @@ -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 +#include void test_cldemote(const void *p) { //CHECK-LABEL: @test_cldemote diff --git a/test/CodeGen/f16c-builtins.c b/test/CodeGen/f16c-builtins.c index e4933e9f9b..ce14187cda 100644 --- a/test/CodeGen/f16c-builtins.c +++ b/test/CodeGen/f16c-builtins.c @@ -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 +#include float test_cvtsh_ss(unsigned short a) { // CHECK-LABEL: test_cvtsh_ss diff --git a/test/CodeGen/fsgsbase-builtins.c b/test/CodeGen/fsgsbase-builtins.c index 25f4b311a5..587ad84e3f 100644 --- a/test/CodeGen/fsgsbase-builtins.c +++ b/test/CodeGen/fsgsbase-builtins.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +fsgsbase -emit-llvm -o - | FileCheck %s -#include +#include unsigned int test_readfsbase_u32() { diff --git a/test/CodeGen/lzcnt-builtins.c b/test/CodeGen/lzcnt-builtins.c index cc5d458c76..b1414a3b56 100644 --- a/test/CodeGen/lzcnt-builtins.c +++ b/test/CodeGen/lzcnt-builtins.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +lzcnt -emit-llvm -o - | FileCheck %s -#include +#include unsigned short test__lzcnt16(unsigned short __X) { diff --git a/test/CodeGen/mmx-builtins.c b/test/CodeGen/mmx-builtins.c index cd725e22b8..ab01c7bd5a 100644 --- a/test/CodeGen/mmx-builtins.c +++ b/test/CodeGen/mmx-builtins.c @@ -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 +#include __m64 test_mm_abs_pi8(__m64 a) { // CHECK-LABEL: test_mm_abs_pi8 diff --git a/test/CodeGen/popcnt-builtins.c b/test/CodeGen/popcnt-builtins.c index 656a20f986..1fdb43339a 100644 --- a/test/CodeGen/popcnt-builtins.c +++ b/test/CodeGen/popcnt-builtins.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +popcnt -emit-llvm -o - | FileCheck %s -#include +#include unsigned int test_mm_popcnt_u32(unsigned int __X) { //CHECK: call i32 @llvm.ctpop.i32 diff --git a/test/CodeGen/ptwrite.c b/test/CodeGen/ptwrite.c index b20b15a397..a34ed741b5 100644 --- a/test/CodeGen/ptwrite.c +++ b/test/CodeGen/ptwrite.c @@ -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 +#include #include diff --git a/test/CodeGen/rdpid-builtins.c b/test/CodeGen/rdpid-builtins.c index 35516b05bd..0816bd07ad 100644 --- a/test/CodeGen/rdpid-builtins.c +++ b/test/CodeGen/rdpid-builtins.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +rdpid -emit-llvm -o - %s | FileCheck %s -#include +#include unsigned int test_rdpid_u32(void) { // CHECK-LABEL: @test_rdpid_u32 diff --git a/test/CodeGen/rdrand-builtins.c b/test/CodeGen/rdrand-builtins.c index 936502b774..44a38a048e 100644 --- a/test/CodeGen/rdrand-builtins.c +++ b/test/CodeGen/rdrand-builtins.c @@ -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 +#include int rdrand16(unsigned short *p) { return _rdrand16_step(p); diff --git a/test/CodeGen/sse-builtins.c b/test/CodeGen/sse-builtins.c index 28b4f2cae1..7e446ba2b0 100644 --- a/test/CodeGen/sse-builtins.c +++ b/test/CodeGen/sse-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll diff --git a/test/CodeGen/sse2-builtins.c b/test/CodeGen/sse2-builtins.c index 8e39866a4f..f7094b2fbd 100644 --- a/test/CodeGen/sse2-builtins.c +++ b/test/CodeGen/sse2-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll diff --git a/test/CodeGen/sse3-builtins.c b/test/CodeGen/sse3-builtins.c index 46a7bbbb91..cf3e9526c3 100644 --- a/test/CodeGen/sse3-builtins.c +++ b/test/CodeGen/sse3-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse3-intrinsics-fast-isel.ll diff --git a/test/CodeGen/sse41-builtins.c b/test/CodeGen/sse41-builtins.c index 6cd742b363..a99ecdabe4 100644 --- a/test/CodeGen/sse41-builtins.c +++ b/test/CodeGen/sse41-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll diff --git a/test/CodeGen/sse42-builtins.c b/test/CodeGen/sse42-builtins.c index 523db1a341..d94d12452d 100644 --- a/test/CodeGen/sse42-builtins.c +++ b/test/CodeGen/sse42-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/sse42-intrinsics-fast-isel.ll diff --git a/test/CodeGen/ssse3-builtins.c b/test/CodeGen/ssse3-builtins.c index 4fd22aa79b..4e6d401772 100644 --- a/test/CodeGen/ssse3-builtins.c +++ b/test/CodeGen/ssse3-builtins.c @@ -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 +#include // NOTE: This should match the tests in llvm/test/CodeGen/X86/ssse3-intrinsics-fast-isel.ll diff --git a/test/CodeGen/waitpkg.c b/test/CodeGen/waitpkg.c index e4ac1cd663..250e74fdd9 100644 --- a/test/CodeGen/waitpkg.c +++ b/test/CodeGen/waitpkg.c @@ -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 +#include #include #include diff --git a/test/CodeGen/x86-nontemporal.c b/test/CodeGen/x86-nontemporal.c index 5e9e42c9f2..cb72f41950 100644 --- a/test/CodeGen/x86-nontemporal.c +++ b/test/CodeGen/x86-nontemporal.c @@ -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 +#include // (PR33830) Tests ensure the correct alignment of non-temporal load/stores on darwin targets where fmax-type-align is set to 16. diff --git a/test/Headers/pconfigintin.c b/test/Headers/pconfigintin.c index e9925fc7ba..43a30acbdc 100644 --- a/test/Headers/pconfigintin.c +++ b/test/Headers/pconfigintin.c @@ -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 +#include #include #include diff --git a/test/Headers/sgxintrin.c b/test/Headers/sgxintrin.c index 8803847875..ce0d408f5d 100644 --- a/test/Headers/sgxintrin.c +++ b/test/Headers/sgxintrin.c @@ -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 +#include #include #include