brintos

brintos / llvm-project-archived public Read only

0
0
Text · 654 B · 7744d00 Raw
20 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s3 4define i16 @pr94824(i8 %x1) {5; CHECK-LABEL: pr94824:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    orl $256, %edi # imm = 0x1008; CHECK-NEXT:    rep bsfl %edi, %ecx9; CHECK-NEXT:    movl $1, %eax10; CHECK-NEXT:    # kill: def $cl killed $cl killed $ecx11; CHECK-NEXT:    shll %cl, %eax12; CHECK-NEXT:    # kill: def $ax killed $ax killed $eax13; CHECK-NEXT:    retq14entry:15  %cttz = call i8 @llvm.cttz.i8(i8 %x1, i1 false)16  %ext = zext i8 %cttz to i1617  %shl = shl i16 1, %ext18  ret i16 %shl19}20