Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/vector-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ typedef int v4si __attribute__((vector_size(4*sizeof (int)))); v4si v; int foo (int i) { v4si v1 = (v4si) { i, i, i, i }; v4si v2 = (v4si) { 3, 3, 3, 3 }; v = v1 * v2; } /* The operation should be carried out as scalar op. */ /* { dg-final { scan-tree-dump-times " \* 3;" 1 "optimized" } } */