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] |
On Sat, Mar 17, 2012 at 11:20 AM, Uros Bizjak <ubizjak@gmail.com> wrote: > On Sat, Mar 17, 2012 at 7:18 PM, H.J. Lu <hjl.tools@gmail.com> wrote: > >>>> Since we must use reg64 in %fs:(%reg) memory operand like >>>> >>>> movq x@gottpoff(%rip),%reg64; >>>> mov %fs:(%reg64),%reg >>>> >>>> this patch optimizes x32 TLS IE load and store by wrapping >>>> %reg64 inside of UNSPEC when Pmode == SImode. ?OK for >>>> trunk? >>>> >>>> Thanks. >>>> >>>> -- >>>> H.J. >>>> --- >>>> 2012-03-11 ?H.J. Lu ?<hongjiu.lu@intel.com> >>>> >>>> ? ? ? ?* config/i386/i386.md (*tls_initial_exec_x32_load): New. >>>> ? ? ? ?(*tls_initial_exec_x32_store): Likewise. >>> >>> Can you implement this with define_insn_and_split, like i.e. >>> *tls_dynamic_gnu2_combine_32 ? >>> >> >> I will give it a try again. ?Last time when I tried it, GCC didn't >> like memory operand in DImode when Pmode == SImode. > > You should remove mode for tls_symbolic_operand predicate. > I am testing this patch. OK for trunk if it passes all tests? Thanks. -- H.J.
Attachment:
gcc-x32-tls-3.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |