1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
7 declare dso_local void @g()
9 define void @neg_cmp(i32 %x, i32 %y) nounwind {
10 ; CHECK-LABEL: neg_cmp:
12 ; CHECK-NEXT: addl %esi, %edi
13 ; CHECK-NEXT: je g # TAILCALL
14 ; CHECK-NEXT: # %bb.1: # %if.end
17 %cmp = icmp eq i32 %x, %sub
18 br i1 %cmp, label %if.then, label %if.end
21 tail call void @g() nounwind
28 define void @neg_cmp_commuted(i32 %x, i32 %y) nounwind {
29 ; CHECK-LABEL: neg_cmp_commuted:
31 ; CHECK-NEXT: addl %esi, %edi
32 ; CHECK-NEXT: je g # TAILCALL
33 ; CHECK-NEXT: # %bb.1: # %if.end
36 %cmp = icmp eq i32 %sub, %x
37 br i1 %cmp, label %if.then, label %if.end
40 tail call void @g() nounwind