mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
139e6699c4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140585 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
232 B
LLVM
13 lines
232 B
LLVM
; RUN: llc < %s -march=x86-64 -mattr=-sse -O0
|
|
; PR9675
|
|
|
|
define i32 @t() {
|
|
entry:
|
|
%i = alloca i32, align 4
|
|
store i32 1, i32* %i, align 4
|
|
fence seq_cst
|
|
%0 = atomicrmw sub i32* %i, i32 1 monotonic
|
|
fence seq_cst
|
|
ret i32 0
|
|
}
|