Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/pr66636.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-additional-options "-mavx2" { target avx_runtime } } */ #include "tree-vect.h" extern void abort (void); struct X { double x; double y; }; void __attribute__((noinline,noclone)) foo (struct X *x, double px, int s) { int i; for (i = 0; i < 256; ++i) { x[i*s].x = px; x[i*s].y = i + px; } } int main() { struct X x[512]; int i; check_vect (); foo (x, 1., 2); if (x[0].x != 1. || x[0].y != 1. || x[510].x != 1. || x[510].y != 256.) abort (); return 0; }