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; TODO: 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: seta %cl 11; CHECK-NEXT: testb $1, %cl 12; CHECK-NEXT: jne .LBB0_2 13; CHECK-NEXT: # %bb.1: # %select.false 14; CHECK-NEXT: movl %esi, %eax 15; CHECK-NEXT: .LBB0_2: # %select.end 16; CHECK-NEXT: retq 17entry: 18 %cmp = icmp ugt i32 %x, %y 19 %z = select i1 %cmp, i32 %x, i32 %y, !prof !0 20 ret i32 %z 21} 22 23!0 = !{!"branch_weights", i32 1, i32 2000} 24