r229676 - Fix test/CodeGen/atomic_ops.c failure on clang-cmake-mips builder (and others).

Daniel Sanders daniel.sanders at imgtec.com
Wed Feb 18 07:08:37 PST 2015


Author: dsanders
Date: Wed Feb 18 09:08:37 2015
New Revision: 229676

URL: http://llvm.org/viewvc/llvm-project?rev=229676&view=rev
Log:
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.


Modified:
    cfe/trunk/test/CodeGen/atomic_ops.c

Modified: cfe/trunk/test/CodeGen/atomic_ops.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/atomic_ops.c?rev=229676&r1=229675&r2=229676&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/atomic_ops.c (original)
+++ cfe/trunk/test/CodeGen/atomic_ops.c Wed Feb 18 09:08:37 2015
@@ -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;
 }





More information about the cfe-commits mailing list