This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][ARM] Optimized 64-bit multiplication for THUMB-1


> +/* Force using ARM code if it is possible except for THUMB2 target. */
> +#if defined(USE_FAST_MULDI3) && !defined(__thumb2__)
> +	ARM_FUNC_START muldi3

The !__thumb2__ test is wrong. I'm surprised this even compiles.

>+	mul	xxh, yyl
>...
>+	add     xxh, yyh

Please use the proper 3-argument form in 32-bit code.

>+	push	{r4, r5, r6, r7}

Older assemblers do not support push/pop in ARM mode.
Use do_push/do_pop.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]