blob: 5e569aabcadd364e9f12303082789d587225d90c [file] [log] [blame]
Eric Christopher77ed1352011-07-08 00:04:56 +00001; RUN: llc < %s -march=x86-64 -mattr=-sse -O0
2; PR9675
3
4define i32 @t() {
5entry:
6 %i = alloca i32, align 4
7 store i32 1, i32* %i, align 4
Eli Friedman139e6692011-09-27 00:17:29 +00008 fence seq_cst
9 %0 = atomicrmw sub i32* %i, i32 1 monotonic
10 fence seq_cst
Eric Christopher77ed1352011-07-08 00:04:56 +000011 ret i32 0
12}