diff options
author | Craig Topper <craig.topper@intel.com> | 2019-07-10 17:11:23 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-07-10 17:11:23 +0000 |
commit | f9cb127ca92fddeca203ce01592f10e9a53ef077 (patch) | |
tree | c0b88f0b59f1af54a8bca808c6e6b8051b3032d6 /clang/test/CodeGen/sse41-builtins.c | |
parent | ab5a30ac9dcec8c92d8e964b0701c6f164e3be88 (diff) | |
download | bcm5719-llvm-f9cb127ca92fddeca203ce01592f10e9a53ef077.tar.gz bcm5719-llvm-f9cb127ca92fddeca203ce01592f10e9a53ef077.zip |
[X86] Add guards to some of the x86 intrinsic tests to skip 64-bit mode only intrinsics when compiled for 32-bit mode.
All the command lines are for 64-bit mode, but sometimes I compile
the tests in 32-bit mode to see what assembly we get and we need
to skip these to do that.
llvm-svn: 365668
Diffstat (limited to 'clang/test/CodeGen/sse41-builtins.c')
-rw-r--r-- | clang/test/CodeGen/sse41-builtins.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/sse41-builtins.c b/clang/test/CodeGen/sse41-builtins.c index 2d9da07330d..4345efe6311 100644 --- a/clang/test/CodeGen/sse41-builtins.c +++ b/clang/test/CodeGen/sse41-builtins.c @@ -182,11 +182,13 @@ int test_mm_extract_epi32(__m128i x) { return _mm_extract_epi32(x, 1); } +#ifdef __x86_64__ long long test_mm_extract_epi64(__m128i x) { // CHECK-LABEL: test_mm_extract_epi64 // CHECK: extractelement <2 x i64> %{{.*}}, {{i32|i64}} 1 return _mm_extract_epi64(x, 1); } +#endif int test_mm_extract_ps(__m128 x) { // CHECK-LABEL: test_mm_extract_ps @@ -230,11 +232,13 @@ __m128i test_mm_insert_epi32(__m128i x, int b) { return _mm_insert_epi32(x, b, 1); } +#ifdef __x86_64__ __m128i test_mm_insert_epi64(__m128i x, long long b) { // CHECK-LABEL: test_mm_insert_epi64 // CHECK: insertelement <2 x i64> %{{.*}}, i64 %{{.*}}, {{i32|i64}} 1 return _mm_insert_epi64(x, b, 1); } +#endif __m128 test_mm_insert_ps(__m128 x, __m128 y) { // CHECK-LABEL: test_mm_insert_ps |