Add support for the __sync_sub_and_fetch atomics and friends for X86. The code
[oota-llvm.git] / test / CodeGen / X86 / 2008-08-19-SubAndFetch.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep xadd
2
3 @var = external global i64              ; <i64*> [#uses=1]
4
5 define i32 @main() nounwind {
6 entry:
7         tail call i64 @llvm.atomic.load.sub.i64.p0i64( i64* @var, i64 1 )               ; <i64>:0 [#uses=0]
8         unreachable
9 }
10
11 declare i64 @llvm.atomic.load.sub.i64.p0i64(i64*, i64) nounwind