brintos

brintos / llvm-project-archived public Read only

0
0
Text · 671 B · ae21840 Raw
21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s3 4; computeKnownBits determines that we don't need a mask op that is required in the general case.5 6define i8 @foo(i8 %tmp325) {7; CHECK-LABEL: foo:8; CHECK:       # %bb.0:9; CHECK-NEXT:    movzbl {{[0-9]+}}(%esp), %eax10; CHECK-NEXT:    imull $111, %eax, %ecx11; CHECK-NEXT:    shrl $12, %ecx12; CHECK-NEXT:    leal (%ecx,%ecx,8), %edx13; CHECK-NEXT:    leal (%ecx,%edx,4), %ecx14; CHECK-NEXT:    subb %cl, %al15; CHECK-NEXT:    # kill: def $al killed $al killed $eax16; CHECK-NEXT:    retl17  %t546 = urem i8 %tmp325, 3718  ret i8 %t54619}20 21