summaryrefslogtreecommitdiff
path: root/test/CodeGen/ms-intrinsics.c
diff options
context:
space:
mode:
authorAlbert Gutowski <agutowski@google.com>2016-09-13 21:51:37 +0000
committerAlbert Gutowski <agutowski@google.com>2016-09-13 21:51:37 +0000
commiteedd0244dd5fd281036f1811aea36dd86627b546 (patch)
tree1c02ff19962747c47390936bda94086754abb5e8 /test/CodeGen/ms-intrinsics.c
parent1b076bcb9c3096b8c688ad0a91af6efa61b4b008 (diff)
downloadclang-eedd0244dd5fd281036f1811aea36dd86627b546.tar.gz
Temporary fix for MS _Interlocked intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms-intrinsics.c')
-rw-r--r--test/CodeGen/ms-intrinsics.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/test/CodeGen/ms-intrinsics.c b/test/CodeGen/ms-intrinsics.c
index 7ab9f0d01d..8547c63142 100644
--- a/test/CodeGen/ms-intrinsics.c
+++ b/test/CodeGen/ms-intrinsics.c
@@ -86,14 +86,6 @@ long test_InterlockedExchange(long volatile *value, long mask) {
// CHECK: ret i32 [[RESULT:%[0-9]+]]
// CHECK: }
-__int64 test_InterlockedExchange64(__int64 volatile *value, __int64 mask) {
- return _InterlockedExchange64(value, mask);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedExchange64(i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw xchg i64* %value, i64 %mask seq_cst
-// CHECK: ret i64 [[RESULT:%[0-9]+]]
-// CHECK: }
-
char test_InterlockedExchangeAdd8(char volatile *value, char mask) {
return _InterlockedExchangeAdd8(value, mask);
}
@@ -118,14 +110,6 @@ long test_InterlockedExchangeAdd(long volatile *value, long mask) {
// CHECK: ret i32 [[RESULT:%[0-9]+]]
// CHECK: }
-__int64 test_InterlockedExchangeAdd64(__int64 volatile *value, __int64 mask) {
- return _InterlockedExchangeAdd64(value, mask);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedExchangeAdd64(i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw add i64* %value, i64 %mask seq_cst
-// CHECK: ret i64 [[RESULT:%[0-9]+]]
-// CHECK: }
-
char test_InterlockedExchangeSub8(char volatile *value, char mask) {
return _InterlockedExchangeSub8(value, mask);
}
@@ -150,14 +134,6 @@ long test_InterlockedExchangeSub(long volatile *value, long mask) {
// CHECK: ret i32 [[RESULT:%[0-9]+]]
// CHECK: }
-__int64 test_InterlockedExchangeSub64(__int64 volatile *value, __int64 mask) {
- return _InterlockedExchangeSub64(value, mask);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedExchangeSub64(i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw sub i64* %value, i64 %mask seq_cst
-// CHECK: ret i64 [[RESULT:%[0-9]+]]
-// CHECK: }
-
char test_InterlockedOr8(char volatile *value, char mask) {
return _InterlockedOr8(value, mask);
}
@@ -182,14 +158,6 @@ long test_InterlockedOr(long volatile *value, long mask) {
// CHECK: ret i32 [[RESULT:%[0-9]+]]
// CHECK: }
-__int64 test_InterlockedOr64(__int64 volatile *value, __int64 mask) {
- return _InterlockedOr64(value, mask);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedOr64(i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw or i64* %value, i64 %mask seq_cst
-// CHECK: ret i64 [[RESULT:%[0-9]+]]
-// CHECK: }
-
char test_InterlockedXor8(char volatile *value, char mask) {
return _InterlockedXor8(value, mask);
}
@@ -214,14 +182,6 @@ long test_InterlockedXor(long volatile *value, long mask) {
// CHECK: ret i32 [[RESULT:%[0-9]+]]
// CHECK: }
-__int64 test_InterlockedXor64(__int64 volatile *value, __int64 mask) {
- return _InterlockedXor64(value, mask);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedXor64(i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw xor i64* %value, i64 %mask seq_cst
-// CHECK: ret i64 [[RESULT:%[0-9]+]]
-// CHECK: }
-
char test_InterlockedAnd8(char volatile *value, char mask) {
return _InterlockedAnd8(value, mask);
}
@@ -246,14 +206,6 @@ long test_InterlockedAnd(long volatile *value, long mask) {
// CHECK: ret i32 [[RESULT:%[0-9]+]]
// CHECK: }
-__int64 test_InterlockedAnd64(__int64 volatile *value, __int64 mask) {
- return _InterlockedAnd64(value, mask);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedAnd64(i64*{{[a-z_ ]*}}%value, i64{{[a-z_ ]*}}%mask){{.*}}{
-// CHECK: [[RESULT:%[0-9]+]] = atomicrmw and i64* %value, i64 %mask seq_cst
-// CHECK: ret i64 [[RESULT:%[0-9]+]]
-// CHECK: }
-
char test_InterlockedCompareExchange8(char volatile *Destination, char Exchange, char Comperand) {
return _InterlockedCompareExchange8(Destination, Exchange, Comperand);
}
@@ -308,15 +260,6 @@ long test_InterlockedIncrement(long volatile *Addend) {
// CHECK: ret i32 [[RESULT]]
// CHECK: }
-__int64 test_InterlockedIncrement64(__int64 volatile *Addend) {
- return _InterlockedIncrement64(Addend);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedIncrement64(i64*{{[a-z_ ]*}}%Addend){{.*}}{
-// CHECK: [[TMP:%[0-9]+]] = atomicrmw add i64* %Addend, i64 1 seq_cst
-// CHECK: [[RESULT:%[0-9]+]] = add i64 [[TMP]], 1
-// CHECK: ret i64 [[RESULT]]
-// CHECK: }
-
short test_InterlockedDecrement16(short volatile *Addend) {
return _InterlockedDecrement16(Addend);
}
@@ -334,12 +277,3 @@ long test_InterlockedDecrement(long volatile *Addend) {
// CHECK: [[RESULT:%[0-9]+]] = add i32 [[TMP]], -1
// CHECK: ret i32 [[RESULT]]
// CHECK: }
-
-__int64 test_InterlockedDecrement64(__int64 volatile *Addend) {
- return _InterlockedDecrement64(Addend);
-}
-// CHECK: define{{.*}}i64 @test_InterlockedDecrement64(i64*{{[a-z_ ]*}}%Addend){{.*}}{
-// CHECK: [[TMP:%[0-9]+]] = atomicrmw sub i64* %Addend, i64 1 seq_cst
-// CHECK: [[RESULT:%[0-9]+]] = add i64 [[TMP]], -1
-// CHECK: ret i64 [[RESULT]]
-// CHECK: }