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] Restrict jump threading statement simplifier to scalar types (PR71077)


> 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.


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