]> granicus.if.org Git - clang/commitdiff
Fix test/CodeGen/atomic_ops.c failure on clang-cmake-mips builder (and others).
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 18 Feb 2015 15:08:37 +0000 (15:08 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 18 Feb 2015 15:08:37 +0000 (15:08 +0000)
Not all targets generate 'store atomic' instructions for
'_Atomic(_Complex int)'. Some targets use the __atomic_store builtin instead.

This commit makes the test accept either one.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229676 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/atomic_ops.c

index 357655047d6f2855d7fc317b349741678f55482c..050b543c478ca05597d826fbc7295fd508a5daf3 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm %s -o - | FileCheck %s
 
 void foo(int x)
 {
@@ -31,6 +32,6 @@ extern _Atomic(_Complex int) x;
 
 void baz(int y) {
 // CHECK-LABEL: @baz
-// CHECK: store atomic
+// CHECK: {{store atomic|call void @__atomic_store}}
   x += y;
 }