[Patch, i386, testsuite] Fix for PR49547, new tescases for lzcnt instruction

Kirill Yukhin kirill.yukhin@gmail.com
Mon Aug 1 12:36:00 GMT 2011


Hi HJ,
Thanks for input. I've missed it.
Done. Updated patch is attached.

Thanks, K

On Mon, Aug 1, 2011 at 4:26 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Mon, Aug 1, 2011 at 5:20 AM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
>> I've merged my changes with trunk (there was a conflict) and fixed typo.
>> Updated patch is attached. Waiting for commit...
>>
>> Thanks, K
>>
>> On Mon, Aug 1, 2011 at 1:03 PM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
>>> Thanks!
>>> Guys with waa rights, could anybody commit my fix?
>>>
>>> Thanks, K
>>>
>>>>
>>>> OK for mainline.
>>>>
>>>> Uros.
>>>>
>>>
>
>
> +# Return 1 if lzcnt instruction can be compiled.
> +proc check_effective_target_lzcnt { } {
> +    return [check_no_compiler_messages lzcnt object {
> +       void _lzcnt (void)
> +       {
> +          __builtin_clzs (0);
> +       }
> +    } "-O2 -mlzcnt" ]
> +}
>
> GCC may optimize this away.  Please fix it similar to:
>
> http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02463.html
>
> --
> H.J.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lzcnt-5.gcc.patch
Type: application/octet-stream
Size: 26745 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110801/b8afc87c/attachment.obj>


More information about the Gcc-patches mailing list