1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
4 ; Compiling the select should not create 'seta - testb $1 - jump' sequence.
5 define i32 @f(i32 %x, i32 %y) {
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: movl %edi, %eax
9 ; CHECK-NEXT: cmpl %esi, %edi
10 ; CHECK-NEXT: ja .LBB0_2
11 ; CHECK-NEXT: # %bb.1: # %select.false
12 ; CHECK-NEXT: movl %esi, %eax
13 ; CHECK-NEXT: .LBB0_2: # %select.end
16 %cmp = icmp ugt i32 %x, %y
17 %z = select i1 %cmp, i32 %x, i32 %y, !prof !0
21 !0 = !{!"branch_weights", i32 1, i32 2000}