https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122108
--- Comment #3 from Jean-Paul Mari <djipi.mari at gmail dot com> ---
Thank you for the patch; I have used it and, unfortunately, it didn't fix the
issue. I have done a different example:
int main(int argc, char** argv)
{
unsigned _Fract i_ur = 0.85ur;
unsigned _Fract j_ur = i_ur / 0.12ur;
}
#NO_APP
.file "test.c"
.text
.align 2
.globl main
.type main, @function
main:
link.w %fp,#-4
move.w #-9831,-2(%fp)
move.w #7864,-(%sp)
move.w -2(%fp),-(%sp)
jsr __udivuhq3
addq.l #8,%sp
move.w %d0,%d0
move.w %d0,-4(%fp)
moveq #0,%d0
unlk %fp
rts
.size main, .-main
.globl __udivuhq3
.ident "GCC: (GNU) 14.3.0"
Regarding libgcc, I have not done modifications yet; I just use the compiler
with an additional asm file to do the functions or use expand/insn in the
m68k.md if possible.
After the configure, I just make the compiler with fixed-point but without
libraries.
make all-gcc
make install-gcc