projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PR14314
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
pr14314.ll
1
; RUN: llc < %s -mtriple=i386-pc-linux -mcpu=corei7 | FileCheck %s
2
3
define i64 @atomicSub(i64* %a, i64 %b) nounwind {
4
entry:
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
}