This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Restrict jump threading statement simplifier to scalar types (PR71077)
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Patrick Palka <patrick at parcs dot ath dot cx>, Yuri Rumyantsev <ysrumyan at gmail dot com>, Richard Biener <rguenther at suse dot de>
- Date: Sat, 20 Aug 2016 09:41:06 +0200
- Subject: Re: [PATCH] Restrict jump threading statement simplifier to scalar types (PR71077)
- Authentication-results: sourceware.org; auth=none
> Turning it into a compile test that counts the number of jumps threaded
> seems potentially flaky but I'm not against it. And I'm not sure how to
> reliably turn it into an execution test. Would the directives
>
> /* { dg-do run } */
> /* { dg-require-effective-target avx2 } */
> /* { dg-require-effective-target ia32 } */
> /* { dg-options "-O3 -mavx2" } */
>
> work?
No, this only checks that the target is able to compile the testcase.
In gcc.target/i386, there is ialready present nfrastructure that
handles runtime checks (avx2_test) in your case. You can see many
examples there.
Uros.