mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
342 B
LLVM
15 lines
342 B
LLVM
; RUN: llc < %s -march=x86-64 | FileCheck %s
|
|
|
|
@var = external global i64 ; <i64*> [#uses=1]
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
; CHECK: main:
|
|
; CHECK: lock
|
|
; CHECK: decq
|
|
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
|