1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
9 define void @neg_cmp(i32 %x, i32 %y) nounwind {
10 ; CHECK-LABEL: neg_cmp:
12 ; CHECK-NEXT: addl %esi, %edi
13 ; CHECK-NEXT: jne .LBB0_1
14 ; CHECK-NEXT: # %bb.2: # %if.then
15 ; CHECK-NEXT: jmp g # TAILCALL
16 ; CHECK-NEXT: .LBB0_1: # %if.end
19 %cmp = icmp eq i32 %x, %sub
20 br i1 %cmp, label %if.then, label %if.end
23 tail call void @g() nounwind
30 define void @neg_cmp_commuted(i32 %x, i32 %y) nounwind {
31 ; CHECK-LABEL: neg_cmp_commuted:
33 ; CHECK-NEXT: addl %esi, %edi
34 ; CHECK-NEXT: jne .LBB1_1
35 ; CHECK-NEXT: # %bb.2: # %if.then
36 ; CHECK-NEXT: jmp g # TAILCALL
37 ; CHECK-NEXT: .LBB1_1: # %if.end
40 %cmp = icmp eq i32 %sub, %x
41 br i1 %cmp, label %if.then, label %if.end
44 tail call void @g() nounwind