r224231 - Fixed test/CodeGen/atomic_ops.c for compatibility with hexagon target

Alexey Bataev a.bataev at hotmail.com
Sun Dec 14 22:12:43 PST 2014


Author: abataev
Date: Mon Dec 15 00:12:42 2014
New Revision: 224231

URL: http://llvm.org/viewvc/llvm-project?rev=224231&view=rev
Log:
Fixed test/CodeGen/atomic_ops.c for compatibility with hexagon target

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=224231&r1=224230&r2=224231&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/atomic_ops.c (original)
+++ cfe/trunk/test/CodeGen/atomic_ops.c Mon Dec 15 00:12:42 2014
@@ -7,12 +7,12 @@ void foo(int x)
   // Check that multiply / divides on atomics produce a cmpxchg loop
   i *= 2;
   // CHECK: mul nsw i32
-  // CHECK: cmpxchg i32*
+  // CHECK: {{(cmpxchg i32*|i1 @__atomic_compare_exchange\(i32 4,)}}
   i /= 2;
   // CHECK: sdiv i32
-  // CHECK: cmpxchg i32*
+  // CHECK: {{(cmpxchg i32*|i1 @__atomic_compare_exchange\(i32 4, )}}
   j /= x;
   // CHECK: sdiv i32
-  // CHECK: cmpxchg i16*
+  // CHECK: {{(cmpxchg i16*|i1 @__atomic_compare_exchange\(i32 2, )}}
 
 }





More information about the cfe-commits mailing list