re PR middle-end/38565 (ICE with vector code)

2008-12-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/38565
        * testsuite/g++.dg/torture/pr38565.C: New test.

From-SVN: r142821
This commit is contained in:
Andrew Pinski 2008-12-18 22:00:46 +00:00 committed by Andrew Pinski
parent c3329535ac
commit 6559c761d4
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-12-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/38565
* testsuite/g++.dg/torture/pr38565.C: New test.
2008-12-18 Jakub Jelinek <jakub@redhat.com>
PR c++/38427

View File

@ -0,0 +1,9 @@
// { dg-do compile }
#define vector __attribute__((vector_size(16) ))
vector unsigned int f(int a)
{
vector unsigned int mask = a ? (vector unsigned int){ 0x80000000, 0x80000000,
0x80000000, 0x80000000 } : (vector unsigned int){0};
return mask;
}