diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-12-22 12:59:30 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-12-22 12:59:30 +0000 |
| commit | 5176f7ea6b752cf0e1f5cb593d01f126f12f4a7f (patch) | |
| tree | 72260b957cbfcdc3488cdfa45014ae331e8967bc /clang/test/Preprocessor | |
| parent | 29c920935744b05f60a863a0bb2620704b34c697 (diff) | |
| download | bcm5719-llvm-5176f7ea6b752cf0e1f5cb593d01f126f12f4a7f.tar.gz bcm5719-llvm-5176f7ea6b752cf0e1f5cb593d01f126f12f4a7f.zip | |
[mips] Add _GCC_HAVE_SYNC_COMPARE_AND_SWAP macros.
This fixes the 'pure virtual function called' failure with ThreadPool in a
clang-built clang. This fixes the llvm-mips-linux builder.
llvm-svn: 256240
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/predefined-macros.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/predefined-macros.c b/clang/test/Preprocessor/predefined-macros.c index 4130f7aefb5..1f68a082a91 100644 --- a/clang/test/Preprocessor/predefined-macros.c +++ b/clang/test/Preprocessor/predefined-macros.c @@ -134,3 +134,15 @@ // RUN: %clang_cc1 %s -E -dM -o - -triple armv6 -target-cpu cortex-m0 \ // RUN: | FileCheck %s --check-prefix=CHECK-SYNC_CAS_ARMv6 // CHECK-SYNC_CAS_ARMv6-NOT: __GCC_HAVE_SYNC_COMPARE_AND_SWAP +// +// RUN: %clang_cc1 %s -E -dM -o - -triple mips -target-cpu mips2 \ +// RUN: | FileCheck %s --check-prefix=CHECK-SYNC_CAS_MIPS \ +// RUN: --check-prefix=CHECK-SYNC_CAS_MIPS32 +// RUN: %clang_cc1 %s -E -dM -o - -triple mips64 -target-cpu mips3 \ +// RUN: | FileCheck %s --check-prefix=CHECK-SYNC_CAS_MIPS \ +// RUN: --check-prefix=CHECK-SYNC_CAS_MIPS64 +// CHECK-SYNC_CAS_MIPS: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 +// CHECK-SYNC_CAS_MIPS: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 +// CHECK-SYNC_CAS_MIPS: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 +// CHECK-SYNC_CAS_MIPS32-NOT: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 +// CHECK-SYNC_CAS_MIPS64: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 |

