1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s 3 4; Compiling the select should not create 'seta - testb $1 - jump' sequence. 5define i32 @f(i32 %x, i32 %y) { 6; CHECK-LABEL: f: 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 14; CHECK-NEXT: retq 15entry: 16 %cmp = icmp ugt i32 %x, %y 17 %z = select i1 %cmp, i32 %x, i32 %y, !prof !0 18 ret i32 %z 19} 20 21!0 = !{!"branch_weights", i32 1, i32 2000} 22