mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
01c6de341c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167769 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
331 B
LLVM
14 lines
331 B
LLVM
; RUN: llc < %s -mtriple=i386-pc-linux -mcpu=corei7 | FileCheck %s
|
|
|
|
define i64 @atomicSub(i64* %a, i64 %b) nounwind {
|
|
entry:
|
|
%0 = atomicrmw sub i64* %a, i64 %b seq_cst
|
|
ret i64 %0
|
|
; CHECK: atomicSub
|
|
; CHECK: movl %eax, %ebx
|
|
; CHECK: subl {{%[a-z]+}}, %ebx
|
|
; CHECK: movl %edx, %ecx
|
|
; CHECK: sbbl {{%[a-z]+}}, %ecx
|
|
; CHECK: ret
|
|
}
|