public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, ARM, libgcc] Enable longlong.h inline assembly for Thumb-2
@ 2012-03-08  3:36 Michael Hope
  2012-03-08  9:42 ` Richard Earnshaw
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Hope @ 2012-03-08  3:36 UTC (permalink / raw)
  To: gcc-patches

Hi there,

This patch enables the ARM inline assembly 64 bit add, subtract, and multiply instructions
in libgcc when compiling for Thumb-2.  The existing code enables them for ARM mode as
Thumb-1 is missing the encodings.

OK for 4.8?

-- Michael

ChangeLog:

2012-03-08  Michael Hope  <michael.hope@linaro.org>

	* longlong.h [ARM] (add_ssaaaa, sub_ddmmss, umul_ppmm): Enable
	for Thumb-2.

diff --git a/libgcc/longlong.h b/libgcc/longlong.h
index 1a839dd..987820d 100644
--- a/libgcc/longlong.h
+++ b/libgcc/longlong.h
@@ -203,7 +203,8 @@ do {									\
  UDItype __umulsidi3 (USItype, USItype);
  #endif

-#if defined (__arm__) && !defined (__thumb__) && W_TYPE_SIZE == 32
+#if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__))	\
+  && W_TYPE_SIZE == 32
  #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
    __asm__ ("adds	%1, %4, %5\n\tadc	%0, %2, %3"		\
  	   : "=r" ((USItype) (sh)),					\

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH, ARM, libgcc] Enable longlong.h inline assembly for Thumb-2
  2012-03-08  3:36 [PATCH, ARM, libgcc] Enable longlong.h inline assembly for Thumb-2 Michael Hope
@ 2012-03-08  9:42 ` Richard Earnshaw
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Earnshaw @ 2012-03-08  9:42 UTC (permalink / raw)
  To: Michael Hope; +Cc: gcc-patches

On 08/03/12 03:36, Michael Hope wrote:
> Hi there,
> 
> This patch enables the ARM inline assembly 64 bit add, subtract, and multiply instructions
> in libgcc when compiling for Thumb-2.  The existing code enables them for ARM mode as
> Thumb-1 is missing the encodings.
> 
> OK for 4.8?
> 
> -- Michael
> 
> ChangeLog:
> 
> 2012-03-08  Michael Hope  <michael.hope@linaro.org>
> 
> 	* longlong.h [ARM] (add_ssaaaa, sub_ddmmss, umul_ppmm): Enable
> 	for Thumb-2.
> 

OK

R.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-08  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08  3:36 [PATCH, ARM, libgcc] Enable longlong.h inline assembly for Thumb-2 Michael Hope
2012-03-08  9:42 ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).