mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
184944acdf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140582 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
231 B
LLVM
13 lines
231 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
|
|
atomicrmw sub i64* @var, i64 1 monotonic
|
|
unreachable
|
|
}
|