diff options
author | Wei Mi <wmi@google.com> | 2017-09-22 16:30:00 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2017-09-22 16:30:00 +0000 |
commit | b086289787d62278089502d222135e098171715b (patch) | |
tree | 4526d8f35bdefab105c4fcdbb12b33eef0466fd4 /clang/test/OpenMP/atomic_write_codegen.c | |
parent | b2eda767fe162173bd611376226ab92d018fec69 (diff) | |
download | bcm5719-llvm-b086289787d62278089502d222135e098171715b.tar.gz bcm5719-llvm-b086289787d62278089502d222135e098171715b.zip |
[Atomic][X8664] set max atomic inline width according to the target
This is to fix PR31620. MaxAtomicInlineWidth is set to 128 for x86_64. However
for target without cx16 support, 128 atomic operation will generate __sync_*
libcalls. The patch set MaxAtomicInlineWidth to 64 if the target doesn't support
cx16.
Differential Revision: https://reviews.llvm.org/D38046
llvm-svn: 313992
Diffstat (limited to 'clang/test/OpenMP/atomic_write_codegen.c')
-rw-r--r-- | clang/test/OpenMP/atomic_write_codegen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/OpenMP/atomic_write_codegen.c b/clang/test/OpenMP/atomic_write_codegen.c index 050d7a51056..0c85b6e88a3 100644 --- a/clang/test/OpenMP/atomic_write_codegen.c +++ b/clang/test/OpenMP/atomic_write_codegen.c @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -x c -emit-llvm %s -o - | FileCheck %s -// RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -emit-pch -o %t %s -// RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -target-cpu core2 -fopenmp -x c -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -target-cpu core2 -emit-pch -o %t %s +// RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -target-cpu core2 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s // expected-no-diagnostics // REQUIRES: x86-registered-target #ifndef HEADER |