blob: 5388a4b01b6563ec7336cc6194bfd282471672d6 [file] [log] [blame]
Michael Liaod39c0fb2012-11-12 06:49:17 +00001; RUN: llc < %s -mtriple=i386-pc-linux -mcpu=corei7 | FileCheck %s
2
3define i64 @atomicSub(i64* %a, i64 %b) nounwind {
4entry:
5 %0 = atomicrmw sub i64* %a, i64 %b seq_cst
6 ret i64 %0
7; CHECK: atomicSub
8; movl %eax, %ebx
9; subl {{%[a-z]+}}, %ebx
10; movl %edx, %ecx
11; sbbl {{%[a-z]+}}, %ecx
12; CHECK: ret
13}