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

Reply via email to