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, i386, testsuite] Fix for PR49547, new tescases for lzcnt instruction


Thanks for inputs! I'll do it today.

Just ine point.
How AVX is connected to LZCNT features?
AVX requires OS support since it has wider registers etc.
LZCNT need no support from OS side, so from my point of view it is
redundant to check in lzcnt-check.h presence of AVX support from OS
side.
Or I get you wrong?

Thanks, K

On Tue, Jul 26, 2011 at 7:56 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Tue, Jul 26, 2011 at 5:40 PM, Mike Stump <mikestump@comcast.net> wrote:
>> On Jul 26, 2011, at 7:50 AM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:
>>> I've also prepared a bunch of tests for lzcnt instuction generation..
>>
>>> /ChangeLog entry:
>>> 2011-07-26 ?Kirill Yukhin ?<kirill.yukhin@intel.com>
>>>
>>> ? ?* lib/target-supports.exp (check_lzcnt_hw_available): New.
>>> ? ?(check_effective_target_lzcnt_runtime): Likewise.
>>> ? ?(check_effective_target_lzcnt): Likewise.
>>
>> For target supports, could you add an x86 to the name somewhere...
>
> Actually, please implement LZCNT detection in gcc.target/i386
> directory, since it is used only in this directory. You wull need only
> check_effective_target_lzcnt in gcc.target/i386/i386.exp, runtime
> detection should be handled in lzcnt-check.h. Oh, bonus points if you
> implement avx-os-support.h (to check OS support with xgetbv insn) and
> use it in all *-check.h that check for AVX runtime (including your new
> lzcnt-check.h).
>
> Other than that, your new option should be tested in
> gcc.target/i386/sse-12.c, gcc.target/i386/sse-13.c,
> gcc.target/i386/sse-14.c, g++.dg/other/i386-2.C and
> g++.dg/other/i386-3.C. See these testcases for further details.
>
> Uros.
>


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