Patchwork Ping^3: [PATCH 3/6] Thread pointer built-in functions, arm

login
register
mail settings
Submitter Richard Earnshaw
Date Oct. 12, 2012, 10:31 a.m.
Message ID <5077F198.5060708@arm.com>
Download mbox | patch
Permalink /patch/191088/
State New
Headers show

Comments

Richard Earnshaw - Oct. 12, 2012, 10:31 a.m.
On 26/09/12 09:59, Chung-Lin Tang wrote:
> On 2012/9/16 05:15 PM, Richard Sandiford wrote:
>> Second ping for the ARM part of Chung-Lin's __builtin_thread_pointer patch:
>>
>>      http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01914.html
>>
>> I think this is the only part that hasn't been approved.
>>
>> Thanks,
>> Richard
>>
>
> Ping again.
>
> (and thanks to Richard S. for doing the last one :)
>
> Thanks,
> Chung-Lin
>
>


OK except:

Please put this pattern with the other TLS related patterns in the MD 
file.  Search for ";; TLS Support".

R.

Patch

Index: config/arm/arm.md
===================================================================
--- config/arm/arm.md	(revision 190742)
+++ config/arm/arm.md	(working copy)
@@ -11473,6 +11473,15 @@ 
    "
  )

+(define_expand "get_thread_pointersi"
+  [(match_operand:SI 0 "s_register_operand" "=r")]
+ ""
+ "
+ {
+   arm_load_tp (operands[0]);
+   DONE;
+ }")
+
  ;; Load the load/store multiple patterns
  (include "ldmstm.md")