/* SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.012Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,32004, 2005, 20064Free Software Foundation, Inc.5*/67!! libgcc routines for the Renesas / SuperH SH CPUs.8!! Contributed by Steve Chamberlain.9!! sac@cygnus.com1011!! ashiftrt_r4_x, ___ashrsi3, ___ashlsi3, ___lshrsi3 routines12!! recoded in assembly by Toshiyasu Morita13!! tm@netcom.com1415/* SH2 optimizations for ___ashrsi3, ___ashlsi3, ___lshrsi3 and16ELF local label prefixes by J"orn Rennecke17[email protected] */1819/* r0: rn r1: qn */ /* r0: n1 r4: n0 r5: d r6: d1 */ /* r2: __m */20/* n1 < d, but n1 might be larger than d1. */21.global __udiv_qrnnd_1622.balign 823__udiv_qrnnd_16:24div0u25cmp/hi r6,r026bt .Lots27.rept 1628div1 r6,r029.endr30extu.w r0,r131bt 0f32add r6,r0330: rotcl r134mulu.w r1,r535xtrct r4,r036swap.w r0,r037sts macl,r238cmp/hs r2,r039sub r2,r040bt 0f41addc r5,r042add #-1,r143bt 0f441: add #-1,r145rts46add r5,r047.balign 848.Lots:49sub r5,r050swap.w r4,r151xtrct r0,r152clrt53mov r1,r054addc r5,r055mov #-1,r156bf/s 1b57shlr16 r1580: rts59nop606162