From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25847 invoked by alias); 10 Apr 2006 07:33:01 -0000 Received: (qmail 25838 invoked by uid 22791); 10 Apr 2006 07:33:01 -0000 X-Spam-Check-By: sourceware.org Received: from emroute3.ornl.gov (HELO emroute3.ornl.gov) (160.91.4.110) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Apr 2006 07:33:00 +0000 Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IXH00DCUWYXIZ@emroute3.ornl.gov> for gcc-help@gcc.gnu.org; Mon, 10 Apr 2006 03:32:57 -0400 (EDT) Received: from [192.168.1.101] (c-68-34-222-4.hsd1.tn.comcast.net [68.34.222.4]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTPSA id <0IXH00G68WYW36@emroute3.ornl.gov> for gcc-help@gcc.gnu.org; Mon, 10 Apr 2006 03:32:57 -0400 (EDT) Date: Mon, 10 Apr 2006 07:33:00 -0000 From: "Ernest L. Williams Jr." Subject: GCC intrinsics for the MPC8540 architecture To: GCC-Help Message-id: <1144654375.19401.2.camel@bengal> MIME-version: 1.0 Content-type: text/plain Content-transfer-encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-04/txt/msg00072.txt.bz2 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 #include 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)); } ========================================================================