public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Ernest L. Williams Jr." <ernesto@ornl.gov>
To: GCC-Help <gcc-help@gcc.gnu.org>
Subject: GCC intrinsics for the MPC8540 architecture
Date: Mon, 10 Apr 2006 07:33:00 -0000	[thread overview]
Message-ID: <1144654375.19401.2.camel@bengal> (raw)

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));

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


             reply	other threads:[~2006-04-10  7:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-10  7:33 Ernest L. Williams Jr. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-04-10  0:45 Ernest L. Williams Jr.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1144654375.19401.2.camel@bengal \
    --to=ernesto@ornl.gov \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).