• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s
3
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), %ecx
10; CHECK-NEXT:    imull $111, %ecx, %eax
11; CHECK-NEXT:    shrl $12, %eax
12; CHECK-NEXT:    movb $37, %dl
13; CHECK-NEXT:    # kill: def $al killed $al killed $eax
14; CHECK-NEXT:    mulb %dl
15; CHECK-NEXT:    subb %al, %cl
16; CHECK-NEXT:    movl %ecx, %eax
17; CHECK-NEXT:    retl
18  %t546 = urem i8 %tmp325, 37
19  ret i8 %t546
20}
21
22