From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17961 invoked by alias); 25 Feb 2002 08:38:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17835 invoked from network); 25 Feb 2002 08:38:03 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 25 Feb 2002 08:38:03 -0000 Received: from culebra.cygnus.com (twigboy.cygnus.com [205.180.230.45]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id AAA08356; Mon, 25 Feb 2002 00:37:54 -0800 (PST) Received: from culebra.cygnus.com (localhost [127.0.0.1]) by culebra.cygnus.com (8.10.2/8.10.2) with ESMTP id g1P8cVN06940; Mon, 25 Feb 2002 19:38:33 +1100 (EST) Date: Mon, 25 Feb 2002 01:00:00 -0000 Subject: Re: altivec amusement Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v480) Cc: Joseph Myers , GCC Mailinglist To: Brad Lucier From: Aldy Hernandez In-Reply-To: <200202250807.g1P87Hw24573@banach.math.purdue.edu> Message-Id: <0B0A0408-29CB-11D6-B487-000393750C1E@redhat.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.480) X-SW-Source: 2002-02/txt/msg01468.txt.bz2 [let's ask joseph about this one] found the problem. the moto specs are so vague... they're not helpful. this is a case of "eeech, you may be right, i may be right". [snip] vector unsigned char high_products[256]; [snip] low = vec_ldl((int) *(inp++),high_products); replace the high_products in the call to vec_ldl with: (vector unsigned char *)high_products vec_ldl is expecting a "vector unsigned char *" in the second argument, not a "vector unsigned char []". joseph, it seems __builtin_types_equal differentiates between int foo[] and int *foo so what brad is trying to do won't work. is __builtin_types_equal doing the right thing? -- Aldy Hernandez E-mail: aldyh@redhat.com Professional Gypsy Lost in Australia Red Hat, Inc.