mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
db69f84663
llvm-svn: 140585
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
|
|
}
|