summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2008-08-19-SubAndFetch.ll
blob: 00bcdf82e8ddda1009acec71bd2c785f7dbb6204 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-as < %s | llc -march=x86-64 | grep xadd

@var = external global i64		; <i64*> [#uses=1]

define i32 @main() nounwind {
entry:
	tail call i64 @llvm.atomic.load.sub.i64.p0i64( i64* @var, i64 1 )		; <i64>:0 [#uses=0]
	unreachable
}

declare i64 @llvm.atomic.load.sub.i64.p0i64(i64*, i64) nounwind
OpenPOWER on IntegriCloud