public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC intrinsics for the MPC8540 architecture
@ 2006-04-10  7:33 Ernest L. Williams Jr.
  0 siblings, 0 replies; 2+ messages in thread
From: Ernest L. Williams Jr. @ 2006-04-10  7:33 UTC (permalink / raw)
  To: GCC-Help

Hi,

I am trying to compile code that uses the
vector processor (SPE) found on the E500 (i.e. MPC8540)
I am using the SPE Programming Instruction Manual (SPEPIM.pdf)

There is a mailing list for ALTIVEC but not for SPE?

I get the following error when trying to print some basic tests:
=====================================================================
error: incompatible type for argument 1 of `__ev_get_u32_internal'
=====================================================================


Here is a code snippet:
=======================================================================
#include <stdio.h>
#include <spe.h>

void spe_print_test()
{
  __ev64_u32__ v = {0x40000000, 0x20000000};

  printf ("%R %R\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

  printf ("%r %r\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

  printf ("%04R %04R\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

  printf ("%04r %04r\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

}
========================================================================


^ permalink raw reply	[flat|nested] 2+ messages in thread

* GCC intrinsics for the MPC8540 architecture
@ 2006-04-10  0:45 Ernest L. Williams Jr.
  0 siblings, 0 replies; 2+ messages in thread
From: Ernest L. Williams Jr. @ 2006-04-10  0:45 UTC (permalink / raw)
  To: GCC-Help; +Cc: ernesto

Hi,

I am trying to compile code that uses the
vector processor (SPE) found on the E500 (i.e. MPC8540)
I am using the SPE Programming Instruction Manual (SPEPIM.pdf)

There is a mailing list for ALTIVEC but not for SPE?

I get the following error when trying to print some basic tests:
=====================================================================
error: incompatible type for argument 1 of `__ev_get_u32_internal'
=====================================================================


Here is a code snippet:
=======================================================================
#include <stdio.h>
#include <spe.h>

void spe_print_test()
{
  __ev64_u32__ v = {0x40000000, 0x20000000};

  printf ("%R %R\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

  printf ("%r %r\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

  printf ("%04R %04R\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

  printf ("%04r %04r\n", __ev_get_upper_ufix32_u32(v),
__ev_get_lower_ufix32_u32(v));

}
========================================================================





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-10  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-10  7:33 GCC intrinsics for the MPC8540 architecture Ernest L. Williams Jr.
  -- strict thread matches above, loose matches on Subject: below --
2006-04-10  0:45 Ernest L. Williams Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).