Eric Christopher | 77ed135 | 2011-07-08 00:04:56 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86-64 -mattr=-sse -O0 |
2 | ; PR9675 | ||||
3 | |||||
4 | define i32 @t() { | ||||
5 | entry: | ||||
6 | %i = alloca i32, align 4 | ||||
7 | store i32 1, i32* %i, align 4 | ||||
Eli Friedman | 139e669 | 2011-09-27 00:17:29 +0000 | [diff] [blame^] | 8 | fence seq_cst |
9 | %0 = atomicrmw sub i32* %i, i32 1 monotonic | ||||
10 | fence seq_cst | ||||
Eric Christopher | 77ed135 | 2011-07-08 00:04:56 +0000 | [diff] [blame] | 11 | ret i32 0 |
12 | } |