OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-fold-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-dom1" } */
3
 
4
typedef unsigned char v4qi __attribute__ ((vector_size (4)));
5
 
6
v4qi c;
7
 
8
void foo()
9
{
10
  v4qi a = { 1, 2, 3, 4 };
11
  v4qi b = { 5, 6, 7, 8 };
12
  c = a + b;
13
}
14
 
15
/* { dg-final { scan-tree-dump-times "c = { 6, 8, 10, 12 }" 1 "dom1" } } */
16
/* { dg-final { cleanup-tree-dump "dom1" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.