From 2ce94e81cb76cae42cbb65084c035fb31ce8e13b Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Wed, 18 Feb 2015 15:08:37 +0000 Subject: [PATCH] Fix test/CodeGen/atomic_ops.c failure on clang-cmake-mips builder (and others). 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/CodeGen/atomic_ops.c b/test/CodeGen/atomic_ops.c index 357655047d..050b543c47 100644 --- a/test/CodeGen/atomic_ops.c +++ b/test/CodeGen/atomic_ops.c @@ -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; } -- 2.40.0