diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-03-16 19:50:43 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-03-16 19:50:43 +0100 |
commit | f8c29d983969a1dd7a8563ba0f2432733e88e76f (patch) | |
tree | 2d5ef1e10fdc62722a5cb8da2aaf18c20be64a7c /gcc/testsuite/gcc.c-torture | |
parent | ec638c5590b4e7c278c5b624c490fffad38bc639 (diff) | |
download | gcc-f8c29d983969a1dd7a8563ba0f2432733e88e76f.zip gcc-f8c29d983969a1dd7a8563ba0f2432733e88e76f.tar.gz gcc-f8c29d983969a1dd7a8563ba0f2432733e88e76f.tar.bz2 |
re PR tree-optimization/65427 (ICE in emit_move_insn with wide vector types)
PR tree-optimization/65427
* tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
functions.
(expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
* gcc.c-torture/execute/pr65427.c: New test.
From-SVN: r221464
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr65427.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr65427.c b/gcc/testsuite/gcc.c-torture/execute/pr65427.c new file mode 100644 index 0000000..dd28a5d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr65427.c @@ -0,0 +1,34 @@ +/* PR tree-optimization/65427 */ + +typedef int V __attribute__ ((vector_size (8 * sizeof (int)))); +V a, b, c, d, e, f; + +__attribute__((noinline, noclone)) void +foo (int x, int y) +{ + do + { + if (x) + d = a ^ c; + else + d = a ^ b; + } + while (y); +} + +int +main () +{ + a = (V) { 1, 2, 3, 4, 5, 6, 7, 8 }; + b = (V) { 0x40, 0x80, 0x40, 0x80, 0x40, 0x80, 0x40, 0x80 }; + e = (V) { 0x41, 0x82, 0x43, 0x84, 0x45, 0x86, 0x47, 0x88 }; + foo (0, 0); + if (__builtin_memcmp (&d, &e, sizeof (V)) != 0) + __builtin_abort (); + c = (V) { 0x80, 0x40, 0x80, 0x40, 0x80, 0x40, 0x80, 0x40 }; + f = (V) { 0x81, 0x42, 0x83, 0x44, 0x85, 0x46, 0x87, 0x48 }; + foo (1, 0); + if (__builtin_memcmp (&d, &f, sizeof (V)) != 0) + __builtin_abort (); + return 0; +} |