diff options
author | Uros Bizjak <uros@kss-loka.si> | 2005-01-04 16:44:25 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2005-01-04 16:44:25 +0100 |
commit | 21e5076a0b103569103829459be6457c3c39e39d (patch) | |
tree | 6f5abb5eb8e24f267bbefd9b81df36259ebcfce3 /gcc/testsuite | |
parent | 8ea9d0c7c932328745976c01943afafaa8c729ee (diff) | |
download | gcc-21e5076a0b103569103829459be6457c3c39e39d.zip gcc-21e5076a0b103569103829459be6457c3c39e39d.tar.gz gcc-21e5076a0b103569103829459be6457c3c39e39d.tar.bz2 |
re PR middle-end/17767 (MMX intrinsics cause internal compiler error)
PR middle-end/17767
* cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
any simplifications of vector mode comparison operators.
* simplify-rtx.c (simplify_relational_operation): Fix variable name.
testsuite:
* gcc.dg/i386-mmx-6.c: New test case.
From-SVN: r92896
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/i386-mmx-6.c | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c376fce..a1b4442 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-01-04 Uros Bizjak <uros@kss-loka.si> + + PR middle-end/17767 + * gcc.dg/i386-mmx-6.c: New test case. + 2005-01-04 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/18308 diff --git a/gcc/testsuite/gcc.dg/i386-mmx-6.c b/gcc/testsuite/gcc.dg/i386-mmx-6.c new file mode 100644 index 0000000..8938d2c --- /dev/null +++ b/gcc/testsuite/gcc.dg/i386-mmx-6.c @@ -0,0 +1,17 @@ +/* PR middle-end/17767 */ +/* Contributed by Volker Reichelt <reichelt@igpm.rwth-aachen.de> */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O -mmmx" } */ +typedef int __m64 __attribute__ ((vector_size (8))); +typedef short __v4hi __attribute__ ((vector_size (8))); + +__m64 foo () +{ + int i; + __m64 m; + + for (i = 0; i < 2; i++) + m = (__m64) __builtin_ia32_pcmpeqw ((__v4hi) m, (__v4hi) m); + + return m; +} |