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: Add x86 integer intrinsics


On Wed, Jun 10, 2009 at 7:12 AM, Paolo Bonzini<paolo.bonzini@gmail.com> wrote:
>> ? ? ? ?* config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
>> ? ? ? ?IX86_BUILTIN_BSRDI. ?IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
>> ? ? ? ?IX86_BUILTIN_RDTSCP. ?IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
>> ? ? ? ?IX86_BUILTIN_ROLSI, IX86_BUILTIN_ROLDI, IX86_BUILTIN_RORQI,
>> ? ? ? ?IX86_BUILTIN_RORHI, IX86_BUILTIN_RORSI and IX86_BUILTIN_RORDI.
>
> Do you really need intrinsics for BSR and ROL/ROR, since we have ctz/clz and
> rotates are synthesized at fold time (so before inlining)?

Gcc can generate them directly, which is independent with intrinsics.

> Also, is BSF missing maybe?
>

BSF is implemented with ctz builtins directly.


-- 
H.J.


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