Home | History | Annotate | Download | only in X86
      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()
     23