Fixed test/CodeGen/atomic_ops.c for compatibility with hexagon target
llvm-svn: 224231
This commit is contained in:
parent
452d8e1133
commit
a47ae907e8
|
@ -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, )}}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue