64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
13 lines
236 B
LLVM
13 lines
236 B
LLVM
; RUN: llc < %s -mtriple=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
|
|
}
|