; CHECK-NEXT: ; %bb.0: ; %entry
; CHECK-NEXT: move.b (11,%sp), %d0
; CHECK-NEXT: and.l #255, %d0
-; CHECK-NEXT: mulu #21846, %d0
+; CHECK-NEXT: mulu #-21845, %d0
; CHECK-NEXT: lsr.l #8, %d0
; CHECK-NEXT: lsr.l #8, %d0
+; CHECK-NEXT: lsr.w #1, %d0
; CHECK-NEXT: and.l #65535, %d0
; CHECK-NEXT: rts
entry:
; CHECK: ; %bb.0:
; CHECK-NEXT: move.b (7,%sp), %d0
; CHECK-NEXT: and.l #255, %d0
-; CHECK-NEXT: mulu #841, %d0
+; CHECK-NEXT: lsr.w #1, %d0
+; CHECK-NEXT: mulu #26887, %d0
; CHECK-NEXT: lsr.l #8, %d0
; CHECK-NEXT: lsr.l #8, %d0
+; CHECK-NEXT: lsr.w #4, %d0
; CHECK-NEXT: ; kill: def $bd0 killed $bd0 killed $d0
; CHECK-NEXT: rts
%div = udiv i8 %x, 78
; CHECK: ; %bb.0:
; CHECK-NEXT: move.b (7,%sp), %d0
; CHECK-NEXT: and.l #255, %d0
-; CHECK-NEXT: mulu #565, %d0
+; CHECK-NEXT: mulu #18079, %d0
; CHECK-NEXT: lsr.l #8, %d0
; CHECK-NEXT: lsr.l #8, %d0
+; CHECK-NEXT: lsr.w #5, %d0
; CHECK-NEXT: ; kill: def $bd0 killed $bd0 killed $d0
; CHECK-NEXT: rts
%div = udiv i8 %x, 116