1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-- -mattr=-sse -O0 | FileCheck %s
8 ; CHECK-NEXT: movl $1, -{{[0-9]+}}(%rsp)
10 ; CHECK-NEXT: lock decl -{{[0-9]+}}(%rsp)
12 ; CHECK-NEXT: xorl %eax, %eax
14 %i = alloca i32, align 4
15 store i32 1, ptr %i, align 4
17 %t0 = atomicrmw sub ptr %i, i32 1 monotonic