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

llvm-svn: 224231
This commit is contained in:
Alexey Bataev 2014-12-15 06:12:42 +00:00
parent 452d8e1133
commit a47ae907e8
1 changed files with 3 additions and 3 deletions

View File

@ -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, )}}
}