<div dir="ltr">What issue is this addressing?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 2:51 PM, Albert Gutowski via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: agutowski<br>
Date: Tue Sep 13 16:51:37 2016<br>
New Revision: 281401<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=281401&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=281401&view=rev</a><br>
Log:<br>
Temporary fix for MS _Interlocked intrinsics<br>
<br>
Modified:<br>
cfe/trunk/include/clang/Basic/<wbr>Builtins.def<br>
cfe/trunk/lib/CodeGen/<wbr>CGBuiltin.cpp<br>
cfe/trunk/lib/Headers/intrin.h<br>
cfe/trunk/test/CodeGen/ms-<wbr>intrinsics.c<br>
<br>
Modified: cfe/trunk/include/clang/Basic/<wbr>Builtins.def<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=281401&r1=281400&r2=281401&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/include/<wbr>clang/Basic/Builtins.def?rev=<wbr>281401&r1=281400&r2=281401&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/include/clang/Basic/<wbr>Builtins.def (original)<br>
+++ cfe/trunk/include/clang/Basic/<wbr>Builtins.def Tue Sep 13 16:51:37 2016<br>
@@ -719,7 +719,6 @@ LANGBUILTIN(__<wbr>GetExceptionInfo, "v*.", "<br>
LANGBUILTIN(_InterlockedAnd8, "ccD*c", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedAnd16, "ssD*s", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedAnd, "LiLiD*Li", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedAnd64, "LLiLLiD*LLi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedCompareExchange8, "ccD*cc", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedCompareExchange16, "ssD*ss", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedCompareExchange, "LiLiD*LiLi", "n", ALL_MS_LANGUAGES)<br>
@@ -727,31 +726,24 @@ LANGBUILTIN(_<wbr>InterlockedCompareExchange6<br>
LANGBUILTIN(_<wbr>InterlockedCompareExchangePoin<wbr>ter, "v*v*D*v*v*", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedDecrement16, "ssD*", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedDecrement, "LiLiD*", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedDecrement64, "LLiLLiD*", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchange, "LiLiD*Li", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchange8, "ccD*c", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchange16, "ssD*s", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedExchange64, "LLiLLiD*LLi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangeAdd8, "ccD*c", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangeAdd16, "ssD*s", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangeAdd, "LiLiD*Li", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedExchangeAdd64, "LLiLLiD*LLi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangePointer, "v*v*D*v*", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangeSub8, "ccD*c", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangeSub16, "ssD*s", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedExchangeSub, "LiLiD*Li", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedExchangeSub64, "LLiLLiD*LLi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedIncrement16, "ssD*", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_<wbr>InterlockedIncrement, "LiLiD*", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedIncrement64, "LLiLLiD*", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedOr8, "ccD*c", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedOr16, "ssD*s", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedOr, "LiLiD*Li", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_InterlockedOr64, "LLiLLiD*LLi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedXor8, "ccD*c", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedXor16, "ssD*s", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_InterlockedXor, "LiLiD*Li", "n", ALL_MS_LANGUAGES)<br>
-LANGBUILTIN(_<wbr>InterlockedXor64, "LLiLLiD*LLi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(__noop, "i.", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(__readfsdword, "ULiULi", "n", ALL_MS_LANGUAGES)<br>
LANGBUILTIN(_rotl8, "UcUcUc", "n", ALL_MS_LANGUAGES)<br>
<br>
Modified: cfe/trunk/lib/CodeGen/<wbr>CGBuiltin.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=281401&r1=281400&r2=281401&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/lib/CodeGen/<wbr>CGBuiltin.cpp?rev=281401&r1=<wbr>281400&r2=281401&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/lib/CodeGen/<wbr>CGBuiltin.cpp (original)<br>
+++ cfe/trunk/lib/CodeGen/<wbr>CGBuiltin.cpp Tue Sep 13 16:51:37 2016<br>
@@ -1963,7 +1963,6 @@ RValue CodeGenFunction::<wbr>EmitBuiltinExpr(<br>
case Builtin::BI_<wbr>InterlockedExchange8:<br>
case Builtin::BI_<wbr>InterlockedExchange16:<br>
case Builtin::BI_<wbr>InterlockedExchange:<br>
- case Builtin::BI_<wbr>InterlockedExchange64:<br>
case Builtin::BI_<wbr>InterlockedExchangePointer:<br>
return EmitBinaryAtomic(*this, llvm::AtomicRMWInst::Xchg, E);<br>
case Builtin::BI_<wbr>InterlockedCompareExchangePoin<wbr>ter: {<br>
@@ -2007,8 +2006,7 @@ RValue CodeGenFunction::<wbr>EmitBuiltinExpr(<br>
return RValue::get(Builder.<wbr>CreateExtractValue(CXI, 0));<br>
}<br>
case Builtin::BI_<wbr>InterlockedIncrement16:<br>
- case Builtin::BI_<wbr>InterlockedIncrement:<br>
- case Builtin::BI_<wbr>InterlockedIncrement64: {<br>
+ case Builtin::BI_<wbr>InterlockedIncrement: {<br>
llvm::Type *IntTy = ConvertType(E->getType());<br>
AtomicRMWInst *RMWI = Builder.CreateAtomicRMW(<br>
AtomicRMWInst::Add,<br>
@@ -2018,8 +2016,7 @@ RValue CodeGenFunction::<wbr>EmitBuiltinExpr(<br>
return RValue::get(Builder.CreateAdd(<wbr>RMWI, ConstantInt::get(IntTy, 1)));<br>
}<br>
case Builtin::BI_<wbr>InterlockedDecrement16:<br>
- case Builtin::BI_<wbr>InterlockedDecrement:<br>
- case Builtin::BI_<wbr>InterlockedDecrement64: {<br>
+ case Builtin::BI_<wbr>InterlockedDecrement: {<br>
llvm::Type *IntTy = ConvertType(E->getType());<br>
AtomicRMWInst *RMWI = Builder.CreateAtomicRMW(<br>
AtomicRMWInst::Sub,<br>
@@ -2031,27 +2028,22 @@ RValue CodeGenFunction::<wbr>EmitBuiltinExpr(<br>
case Builtin::BI_InterlockedAnd8:<br>
case Builtin::BI_InterlockedAnd16:<br>
case Builtin::BI_InterlockedAnd:<br>
- case Builtin::BI_InterlockedAnd64:<br>
return EmitBinaryAtomic(*this, AtomicRMWInst::And, E);<br>
case Builtin::BI_<wbr>InterlockedExchangeAdd8:<br>
case Builtin::BI_<wbr>InterlockedExchangeAdd16:<br>
case Builtin::BI_<wbr>InterlockedExchangeAdd:<br>
- case Builtin::BI_<wbr>InterlockedExchangeAdd64:<br>
return EmitBinaryAtomic(*this, AtomicRMWInst::Add, E);<br>
case Builtin::BI_<wbr>InterlockedExchangeSub8:<br>
case Builtin::BI_<wbr>InterlockedExchangeSub16:<br>
case Builtin::BI_<wbr>InterlockedExchangeSub:<br>
- case Builtin::BI_<wbr>InterlockedExchangeSub64:<br>
return EmitBinaryAtomic(*this, AtomicRMWInst::Sub, E);<br>
case Builtin::BI_InterlockedOr8:<br>
case Builtin::BI_InterlockedOr16:<br>
case Builtin::BI_InterlockedOr:<br>
- case Builtin::BI_InterlockedOr64:<br>
return EmitBinaryAtomic(*this, AtomicRMWInst::Or, E);<br>
case Builtin::BI_InterlockedXor8:<br>
case Builtin::BI_InterlockedXor16:<br>
case Builtin::BI_InterlockedXor:<br>
- case Builtin::BI_InterlockedXor64:<br>
return EmitBinaryAtomic(*this, AtomicRMWInst::Xor, E);<br>
case Builtin::BI__readfsdword: {<br>
llvm::Type *IntTy = ConvertType(E->getType());<br>
<br>
Modified: cfe/trunk/lib/Headers/intrin.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/intrin.h?rev=281401&r1=281400&r2=281401&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/lib/Headers/<wbr>intrin.h?rev=281401&r1=281400&<wbr>r2=281401&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/lib/Headers/intrin.h (original)<br>
+++ cfe/trunk/lib/Headers/intrin.h Tue Sep 13 16:51:37 2016<br>
@@ -546,6 +546,63 @@ _interlockedbittestandset64(__<wbr>int64 vola<br>
__atomic_fetch_or(_BitBase, 1ll << _BitPos, __ATOMIC_SEQ_CST);<br>
return (_PrevVal >> _BitPos) & 1;<br>
}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Exchange Add<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedExchangeAdd64(__<wbr>int64 volatile *_Addend, __int64 _Value) {<br>
+ return __atomic_fetch_add(_Addend, _Value, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Exchange Sub<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedExchangeSub64(__<wbr>int64 volatile *_Subend, __int64 _Value) {<br>
+ return __atomic_fetch_sub(_Subend, _Value, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Increment<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedIncrement64(__<wbr>int64 volatile *_Value) {<br>
+ return __atomic_add_fetch(_Value, 1, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Decrement<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedDecrement64(__<wbr>int64 volatile *_Value) {<br>
+ return __atomic_sub_fetch(_Value, 1, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked And<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedAnd64(__int64 volatile *_Value, __int64 _Mask) {<br>
+ return __atomic_fetch_and(_Value, _Mask, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Or<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedOr64(__int64 volatile *_Value, __int64 _Mask) {<br>
+ return __atomic_fetch_or(_Value, _Mask, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Xor<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedXor64(__int64 volatile *_Value, __int64 _Mask) {<br>
+ return __atomic_fetch_xor(_Value, _Mask, __ATOMIC_SEQ_CST);<br>
+}<br>
+/*---------------------------<wbr>------------------------------<wbr>-------------------*\<br>
+|* Interlocked Exchange<br>
+\*---------------------------<wbr>------------------------------<wbr>-------------------*/<br>
+static __inline__ __int64 __DEFAULT_FN_ATTRS<br>
+_InterlockedExchange64(__<wbr>int64 volatile *_Target, __int64 _Value) {<br>
+ __atomic_exchange(_Target, &_Value, &_Value, __ATOMIC_SEQ_CST);<br>
+ return _Value;<br>
+}<br>
#endif<br>
/*----------------------------<wbr>------------------------------<wbr>------------------*\<br>
|* Barriers<br>
<br>
Modified: cfe/trunk/test/CodeGen/ms-<wbr>intrinsics.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/ms-intrinsics.c?rev=281401&r1=281400&r2=281401&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/test/<wbr>CodeGen/ms-intrinsics.c?rev=<wbr>281401&r1=281400&r2=281401&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/test/CodeGen/ms-<wbr>intrinsics.c (original)<br>
+++ cfe/trunk/test/CodeGen/ms-<wbr>intrinsics.c Tue Sep 13 16:51:37 2016<br>
@@ -86,14 +86,6 @@ long test_InterlockedExchange(long volat<br>
// CHECK: ret i32 [[RESULT:%[0-9]+]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedExchange64(__<wbr>int64 volatile *value, __int64 mask) {<br>
- return _InterlockedExchange64(value, mask);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_InterlockedExchange64(<wbr>i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{<br>
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw xchg i64* %value, i64 %mask seq_cst<br>
-// CHECK: ret i64 [[RESULT:%[0-9]+]]<br>
-// CHECK: }<br>
-<br>
char test_InterlockedExchangeAdd8(<wbr>char volatile *value, char mask) {<br>
return _InterlockedExchangeAdd8(<wbr>value, mask);<br>
}<br>
@@ -118,14 +110,6 @@ long test_InterlockedExchangeAdd(<wbr>long vo<br>
// CHECK: ret i32 [[RESULT:%[0-9]+]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedExchangeAdd64(<wbr>__int64 volatile *value, __int64 mask) {<br>
- return _InterlockedExchangeAdd64(<wbr>value, mask);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_<wbr>InterlockedExchangeAdd64(i64*{<wbr>{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{<br>
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw add i64* %value, i64 %mask seq_cst<br>
-// CHECK: ret i64 [[RESULT:%[0-9]+]]<br>
-// CHECK: }<br>
-<br>
char test_InterlockedExchangeSub8(<wbr>char volatile *value, char mask) {<br>
return _InterlockedExchangeSub8(<wbr>value, mask);<br>
}<br>
@@ -150,14 +134,6 @@ long test_InterlockedExchangeSub(<wbr>long vo<br>
// CHECK: ret i32 [[RESULT:%[0-9]+]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedExchangeSub64(<wbr>__int64 volatile *value, __int64 mask) {<br>
- return _InterlockedExchangeSub64(<wbr>value, mask);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_<wbr>InterlockedExchangeSub64(i64*{<wbr>{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{<br>
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw sub i64* %value, i64 %mask seq_cst<br>
-// CHECK: ret i64 [[RESULT:%[0-9]+]]<br>
-// CHECK: }<br>
-<br>
char test_InterlockedOr8(char volatile *value, char mask) {<br>
return _InterlockedOr8(value, mask);<br>
}<br>
@@ -182,14 +158,6 @@ long test_InterlockedOr(long volatile *v<br>
// CHECK: ret i32 [[RESULT:%[0-9]+]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedOr64(__int64 volatile *value, __int64 mask) {<br>
- return _InterlockedOr64(value, mask);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_InterlockedOr64(i64*{{[<wbr>a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{<br>
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw or i64* %value, i64 %mask seq_cst<br>
-// CHECK: ret i64 [[RESULT:%[0-9]+]]<br>
-// CHECK: }<br>
-<br>
char test_InterlockedXor8(char volatile *value, char mask) {<br>
return _InterlockedXor8(value, mask);<br>
}<br>
@@ -214,14 +182,6 @@ long test_InterlockedXor(long volatile *<br>
// CHECK: ret i32 [[RESULT:%[0-9]+]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedXor64(__int64 volatile *value, __int64 mask) {<br>
- return _InterlockedXor64(value, mask);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_InterlockedXor64(i64*{{[<wbr>a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{<br>
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw xor i64* %value, i64 %mask seq_cst<br>
-// CHECK: ret i64 [[RESULT:%[0-9]+]]<br>
-// CHECK: }<br>
-<br>
char test_InterlockedAnd8(char volatile *value, char mask) {<br>
return _InterlockedAnd8(value, mask);<br>
}<br>
@@ -246,14 +206,6 @@ long test_InterlockedAnd(long volatile *<br>
// CHECK: ret i32 [[RESULT:%[0-9]+]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedAnd64(__int64 volatile *value, __int64 mask) {<br>
- return _InterlockedAnd64(value, mask);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_InterlockedAnd64(i64*{{[<wbr>a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{<br>
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw and i64* %value, i64 %mask seq_cst<br>
-// CHECK: ret i64 [[RESULT:%[0-9]+]]<br>
-// CHECK: }<br>
-<br>
char test_<wbr>InterlockedCompareExchange8(<wbr>char volatile *Destination, char Exchange, char Comperand) {<br>
return _InterlockedCompareExchange8(<wbr>Destination, Exchange, Comperand);<br>
}<br>
@@ -308,15 +260,6 @@ long test_InterlockedIncrement(long vola<br>
// CHECK: ret i32 [[RESULT]]<br>
// CHECK: }<br>
<br>
-__int64 test_InterlockedIncrement64(__<wbr>int64 volatile *Addend) {<br>
- return _InterlockedIncrement64(<wbr>Addend);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_InterlockedIncrement64(<wbr>i64*{{[a-z_ ]*}}%Addend){{.*}}{<br>
-// CHECK: [[TMP:%[0-9]+]] = atomicrmw add i64* %Addend, i64 1 seq_cst<br>
-// CHECK: [[RESULT:%[0-9]+]] = add i64 [[TMP]], 1<br>
-// CHECK: ret i64 [[RESULT]]<br>
-// CHECK: }<br>
-<br>
short test_InterlockedDecrement16(<wbr>short volatile *Addend) {<br>
return _InterlockedDecrement16(<wbr>Addend);<br>
}<br>
@@ -334,12 +277,3 @@ long test_InterlockedDecrement(long vola<br>
// CHECK: [[RESULT:%[0-9]+]] = add i32 [[TMP]], -1<br>
// CHECK: ret i32 [[RESULT]]<br>
// CHECK: }<br>
-<br>
-__int64 test_InterlockedDecrement64(__<wbr>int64 volatile *Addend) {<br>
- return _InterlockedDecrement64(<wbr>Addend);<br>
-}<br>
-// CHECK: define{{.*}}i64 @test_InterlockedDecrement64(<wbr>i64*{{[a-z_ ]*}}%Addend){{.*}}{<br>
-// CHECK: [[TMP:%[0-9]+]] = atomicrmw sub i64* %Addend, i64 1 seq_cst<br>
-// CHECK: [[RESULT:%[0-9]+]] = add i64 [[TMP]], -1<br>
-// CHECK: ret i64 [[RESULT]]<br>
-// CHECK: }<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>