This is the mail archive of the gcc@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: Test Harness and SPARC VIS Instructions


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


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