Test Harness and SPARC VIS Instructions
Seongbae Park (박성배, 朴成培)
seongbae.park@gmail.com
Thu Mar 13 20:19:00 GMT 2008
On Thu, Mar 13, 2008 at 12:32 PM, Joel Sherrill
<joel.sherrill@oarcorp.com> wrote:
>
> Uros Bizjak wrote:
> > Hello!
> >
> >
> >> Can someone familiar with VIS provide an instruction
> >> that is OK to do a run-time test with to check if
> >> it is supported?
> >>
> >
> > Perhaps this fragment from testsuite/gcc.dg/vect/tree-vect.h may help:
> >
> > #elif defined(__sparc__)
> > asm volatile (".word\t0x81b007c0");
> >
> Thanks. That helped a lot. Now I only see these cases on vect.exp
>
> ======================================
>
> This one looks like another test slipping another unsupported
> instruction by.
>
> 0x020012b8 <fbar+40>: bne,pn %icc, 0x200138c <fbar+252>
>
> Is this UltraSPARC and not V7? Do we need two bad instructions
> in the test case?
Branc with prediction is v9. Even v8 doesn't have it. No v8 processor has VIS,
so actually this test is sufficient. If you really want v7 check (not v8 check),
then you should use something else like, umul,
which is only available on v8 and up.
Seongbae
More information about the Gcc
mailing list