diff options
author | Richard Sandiford <richard@codesourcery.com> | 2005-08-03 14:05:02 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2005-08-03 14:05:02 +0000 |
commit | 3ed831a4a786bb5357035449cc0e9bec967a7ad0 (patch) | |
tree | 772e49414eefac7d08077f9111b9f4e14281151b /gcc/testsuite/gcc.dg/torture | |
parent | 178df94ff18a589455749496b4cd6888feb567b0 (diff) | |
download | gcc-3ed831a4a786bb5357035449cc0e9bec967a7ad0.zip gcc-3ed831a4a786bb5357035449cc0e9bec967a7ad0.tar.gz gcc-3ed831a4a786bb5357035449cc0e9bec967a7ad0.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr18582-1.c | 24 |
1 files changed, 24 insertions, 0 deletions
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 0000000..d222dab --- /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); +} |