[Bug target/30254] Need method to determine if AltiVec PIM is available

2010-07-20 Thread steven at gcc dot gnu dot org


-- 

steven at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |enhancement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30254



[Bug target/30254] Need method to determine if AltiVec PIM is available

2007-01-06 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2007-01-07 00:50 ---
Confirmed, I did not have time over the winter break to look at this bug, maybe
on the 15th or next weekend while I am in Tahoe.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-01-07 00:50:46
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30254



[Bug target/30254] Need method to determine if AltiVec PIM is available

2006-12-18 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-12-18 20:07 ---
One more point to all this issues if you do configure GCC with --with-cpu=cell
or --with-cpu=970, etc. or use -mcpu=cell, -mcpu=970, -maltivec is enabled by
default.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|c   |target


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30254



[Bug target/30254] Need method to determine if AltiVec PIM is available

2006-12-18 Thread iano at apple dot com


--- Comment #4 from iano at apple dot com  2006-12-18 20:24 ---

A gcc test case that verfies behavior in this area would drive conformance by
external vendors like IBM. 

Unfortunately, it is not clear that GCC even has an approved method for
determining if the PIM is active. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30254



[Bug target/30254] Need method to determine if AltiVec PIM is available

2006-12-18 Thread iano at apple dot com


--- Comment #5 from iano at apple dot com  2006-12-18 20:52 ---

I will nominate the following as a test case.  It should compile without
errors:

for each affected arch:

gcc test_case.c
gcc test_case.c -maltivec
gcc test_case.c -faltivec
gcc test_case.c -maltivec -DINCLUDE_HEADER

test_case.c:

#include stdio.h
#if defined( INCLUDE_HEADER )
   #include altivec.h
#endif

/* The approved method for detecting PIM availability on GCC */
#if defined( __VEC__ )
 #if defined( __GNUC__ )  ! defined __APPLE_ALTIVEC__
#if defined _ALTIVEC_H  /* defined by altivec.h */
 #define __ALTIVEC_PIM__
#endif
 #else
#define __ALTIVEC_PIM__
 #endif  /* __GNUC__ */
#endif /* __VEC__ */


int main( void )
{
#if defined( __ALTIVEC_PIM__ )
vector unsigned char v = (vector unsigned char) (
'A','l','t','i','V','e','c',' ','i','s',' ','o','n', 0, 0, 0 );   
v = vec_or( v, v );
printf( %vc\n, v );//note, some operating systems don't
support %v format specifiers, which is a separate problem
#else
printf( AltiVec is off\n );
#endif

return 0;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30254