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/bmi-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/bmi-builtins.c')
-rw-r--r-- | clang/test/CodeGen/bmi-builtins.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/bmi-builtins.c b/clang/test/CodeGen/bmi-builtins.c index 69eb2bdb807..9eda3f614d4 100644 --- a/clang/test/CodeGen/bmi-builtins.c +++ b/clang/test/CodeGen/bmi-builtins.c @@ -65,6 +65,7 @@ int test_mm_tzcnt_32(unsigned int __X) { return _mm_tzcnt_32(__X); } +#ifdef __x86_64__ unsigned long long test__andn_u64(unsigned long __X, unsigned long __Y) { // CHECK-LABEL: test__andn_u64 // CHECK: xor i64 %{{.*}}, -1 @@ -110,6 +111,7 @@ long long test_mm_tzcnt_64(unsigned long long __X) { // CHECK: i64 @llvm.cttz.i64(i64 %{{.*}}, i1 false) return _mm_tzcnt_64(__X); } +#endif // Intel intrinsics @@ -164,6 +166,7 @@ unsigned int test_tzcnt_u32(unsigned int __X) { return _tzcnt_u32(__X); } +#ifdef __x86_64__ unsigned long long test_andn_u64(unsigned long __X, unsigned long __Y) { // CHECK-LABEL: test_andn_u64 // CHECK: xor i64 %{{.*}}, -1 @@ -209,3 +212,4 @@ unsigned long long test_tzcnt_u64(unsigned long long __X) { // CHECK: i64 @llvm.cttz.i64(i64 %{{.*}}, i1 false) return _tzcnt_u64(__X); } +#endif |