Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/vector-5.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
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" } } */