Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/vector-5.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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" } } */