Bug 38025 - [4.4 Regression] gcc.target/spu/intrinsics-1.c test fails
Summary: [4.4 Regression] gcc.target/spu/intrinsics-1.c test fails
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.4.0
: P4 normal
Target Milestone: 4.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-05 17:38 UTC by Michael Meissner
Modified: 2008-12-02 23:26 UTC (History)
3 users (show)

See Also:
Host:
Target: spu-elf
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-11-05 20:31:29


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meissner 2008-11-05 17:38:33 UTC
The testsuite gcc.target/spu/intrinsics-1.c fails with a compilation error:
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c: In function ‘f’:
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:12: error: parameter list does not match a valid signature for spu_cmpgt()
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:13: warning: passing argument 2 of ‘__builtin_spu_cmpgt_11’ makes integer from pointer without a cast
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:13: note: expected ‘int’ but argument is of type ‘int *’
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:14: error: parameter list does not match a valid signature for spu_cmpgt()
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:16: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:16: error: incompatible types when assigning to type ‘int __vector__’ from type ‘unsigned int __vector__’
Comment 1 Ulrich Weigand 2008-11-05 18:04:59 UTC
The test case tests for expected failures.  It seems there is now an additional message being output:

/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:13:
warning: passing argument 2 of ‘__builtin_spu_cmpgt_11’ makes integer from
pointer without a cast
/home/meissner/fsf-src/trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c:13:
note: expected ‘int’ but argument is of type ‘int *’

The testcase checks for the "makes integer from pointer" error, but does not expect the additional "note".
Comment 2 Andrew Pinski 2008-11-05 20:31:29 UTC
Yes this is only a testcase issue.  The new note was introduced by PR 30949.
Comment 3 Michael Meissner 2008-11-05 23:47:02 UTC
Subject: Bug 38025

Author: meissner
Date: Wed Nov  5 23:45:36 2008
New Revision: 141628

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141628
Log:
Fix PR 38025

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/spu/intrinsics-1.c

Comment 4 Michael Meissner 2008-12-02 23:26:37 UTC
Patch applied to tree on November 5th.