Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

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
}