summaryrefslogtreecommitdiff
path: root/test/CodeGen/linux-arm-atomic.c
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-05-15 21:07:09 +0000
committerBill Wendling <isanbard@gmail.com>2013-05-15 21:07:09 +0000
commit9d92987a583981bc013f4a22f89d24df104f13da (patch)
treea7b8e6d44dd4aab3234f370d0ddf307305eb7ae5 /test/CodeGen/linux-arm-atomic.c
parent39f229fdd3084dc995a1b45d94cde435c3a0a180 (diff)
downloadclang-9d92987a583981bc013f4a22f89d24df104f13da.tar.gz
clang-9d92987a583981bc013f4a22f89d24df104f13da.tar.bz2
clang-9d92987a583981bc013f4a22f89d24df104f13da.tar.xz
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/CodeGen/linux-arm-atomic.c')
-rw-r--r--test/CodeGen/linux-arm-atomic.c1
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) {