brintos

brintos / llvm-project-archived public Read only

0
0
Text · 671 B · 5ae09af Raw
22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s3 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: # %entry8; CHECK-NEXT:    movl %edi, %eax9; CHECK-NEXT:    cmpl %esi, %edi10; CHECK-NEXT:    ja .LBB0_211; CHECK-NEXT:  # %bb.1: # %select.false12; CHECK-NEXT:    movl %esi, %eax13; CHECK-NEXT:  .LBB0_2: # %select.end14; CHECK-NEXT:    retq15entry:16  %cmp = icmp ugt i32 %x, %y17  %z = select i1 %cmp, i32 %x, i32 %y, !prof !018  ret i32 %z19}20 21!0 = !{!"branch_weights", i32 1, i32 2000}22