diff options
Diffstat (limited to 'libgcc/config/rl78/divmodsi.S')
-rw-r--r-- | libgcc/config/rl78/divmodsi.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgcc/config/rl78/divmodsi.S b/libgcc/config/rl78/divmodsi.S index 987a9e31126..94bad1e6ca0 100644 --- a/libgcc/config/rl78/divmodsi.S +++ b/libgcc/config/rl78/divmodsi.S @@ -688,9 +688,14 @@ __generic_simod: or a, denB3 ; not x cmpw ax, #0 bnz $den_not_zero\which + .if \need_result + movw quotL, #0 + movw quotH, #0 + .else movw numL, #0 movw numH, #0 - ret + .endif + br $!main_loop_done_himode\which den_not_zero\which: .if \need_result |