Mercurial > hg > CbC > CbC_llvm
annotate test/CodeGen/X86/pr14314.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 803732b1fca8 |
rev | line source |
---|---|
0 | 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 ; CHECK: movl %eax, %ebx | |
9 ; CHECK: subl {{%[a-z]+}}, %ebx | |
10 ; CHECK: movl %edx, %ecx | |
11 ; CHECK: sbbl {{%[a-z]+}}, %ecx | |
12 ; CHECK: ret | |
13 } |