ARM: partially handle 32-bit relocations for WoA
[oota-llvm.git] / test / CodeGen / X86 / coalescer-remat.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep xor | count 3
2
3 @val = internal global i64 0
4 @"\01LC" = internal constant [7 x i8] c"0x%lx\0A\00"
5
6 define i32 @main() nounwind {
7 entry:
8   %0 = cmpxchg i64* @val, i64 0, i64 1 monotonic monotonic
9   %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([7 x i8]* @"\01LC", i32 0, i64 0), i64 %0) nounwind
10   ret i32 0
11 }
12
13 declare i32 @printf(i8*, ...) nounwind