diff options
author | Craig Topper <craig.topper@intel.com> | 2018-06-14 18:43:52 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-06-14 18:43:52 +0000 |
commit | 95ac99d8fa2569187bca496f14209a8b24cb6a05 (patch) | |
tree | f63f9e935679b0e08f3c13b99693bcd5d98d0795 /test/CodeGen/bitscan-builtins.c | |
parent | 8d508f1184162f913ec51593a1118700b018d78a (diff) |
[X86] Add inline assembly versions of _InterlockedExchange_HLEAcquire/Release and _InterlockedCompareExchange_HLEAcquire/Release for MSVC compatibility.
Clang/LLVM doesn't have a way to pass an HLE hint through to the X86 backend to emit HLE prefixed instructions. So this is a good short term fix.
Differential Revision: https://reviews.llvm.org/D47672
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/bitscan-builtins.c')
-rw-r--r-- | test/CodeGen/bitscan-builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/bitscan-builtins.c b/test/CodeGen/bitscan-builtins.c index 5fd3f13fbc..25dfa40462 100644 --- a/test/CodeGen/bitscan-builtins.c +++ b/test/CodeGen/bitscan-builtins.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s // PR33722 -// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -D_MSC_VER -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -fms-extensions -fms-compatibility-version=19.00 -emit-llvm -o - %s | FileCheck %s #include <immintrin.h> |