From: Richard Sandiford Date: Wed, 3 Aug 2005 14:05:02 +0000 (+0000) Subject: re PR target/18582 (Internal compiler error with arrays of type V2DF) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ed831a4a786bb5357035449cc0e9bec967a7ad0;p=gcc.git re PR target/18582 (Internal compiler error with arrays of type V2DF) PR target/18582 * testsuite/gcc.dg/torture/pr18582-1.c: New test. From-SVN: r102690 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e571c94ecab..fa68ac52cf7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-08-03 Richard Sandiford + + PR target/18582 + * testsuite/gcc.dg/torture/pr18582-1.c: New test. + 2005-08-03 Jan Hubicka * update-conroll.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/torture/pr18582-1.c b/gcc/testsuite/gcc.dg/torture/pr18582-1.c new file mode 100644 index 00000000000..d222dabd415 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr18582-1.c @@ -0,0 +1,24 @@ +/* { dg-do compile { target i?86-*-* } } */ +/* { dg-options "-msse3" } */ +typedef char v16qi __attribute__((vector_size (16))); +typedef float v4sf __attribute__((vector_size (16))); +typedef double v2df __attribute__((vector_size (16))); + +extern char ca[]; +extern float fa[]; +extern double da[]; + +extern v16qi cva[]; +extern v4sf fva[]; +extern v2df dva[]; + +void +foo (void) +{ + cva[0] = __builtin_ia32_loaddqu (ca); + cva[0] = __builtin_ia32_lddqu (ca); + + fva[0] = __builtin_ia32_loadups (fa); + + dva[0] = __builtin_ia32_loadupd (da); +}