~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/neg_cmp.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 -march=x86-64 | FileCheck %s
 
2
 
 
3
; rdar://11245199
 
4
; PR12545
 
5
define void @f(i32 %x, i32 %y) nounwind uwtable ssp {
 
6
entry:
 
7
; CHECK-LABEL: f:
 
8
; CHECK-NOT: neg
 
9
; CHECK: add
 
10
  %sub = sub i32 0, %y
 
11
  %cmp = icmp eq i32 %x, %sub
 
12
  br i1 %cmp, label %if.then, label %if.end
 
13
 
 
14
if.then:                                          ; preds = %entry
 
15
  tail call void @g() nounwind
 
16
  br label %if.end
 
17
 
 
18
if.end:                                           ; preds = %if.then, %entry
 
19
  ret void
 
20
}
 
21
 
 
22
declare void @g()