~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/pr14314.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}