diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-05-15 21:07:09 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-05-15 21:07:09 +0000 |
commit | 9d92987a583981bc013f4a22f89d24df104f13da (patch) | |
tree | a7b8e6d44dd4aab3234f370d0ddf307305eb7ae5 /test | |
parent | 39f229fdd3084dc995a1b45d94cde435c3a0a180 (diff) |
Merging r181750:
------------------------------------------------------------------------
r181750 | rafael | 2013-05-13 17:44:24 -0700 (Mon, 13 May 2013) | 4 lines
Use atomic instructions on linux thumb v7.
This matches gcc's behaviour. The patch also explicitly parses the version so
that this keeps working when we add support for v8.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_33@181920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/linux-arm-atomic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGen/linux-arm-atomic.c b/test/CodeGen/linux-arm-atomic.c index 3fda7f688c..c7ce1d228b 100644 --- a/test/CodeGen/linux-arm-atomic.c +++ b/test/CodeGen/linux-arm-atomic.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-linux | FileCheck %s // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv6-unknown-linux | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -o - -triple=thumbv7-unknown-linux | FileCheck %s typedef int _Atomic_word; _Atomic_word exchange_and_add(volatile _Atomic_word *__mem, int __val) { |