URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [avx2-vpaddq-2.c] - Rev 848
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ /* { dg-options "-mavx2 -O2" } */ /* { dg-require-effective-target avx2 } */ #include "avx2-check.h" void static avx2_test (void) { union256i_q u, s1, s2; long long e[4]; unsigned i; s1.x = _mm256_set_epi64x (100, 74, 50000, 4); s2.x = _mm256_set_epi64x (88, 44, 33, 220); u.x = _mm256_add_epi64 (s1.x, s2.x); for (i = 0; i < 4; i++) e[i] = s1.a[i] + s2.a[i]; if (check_union256i_q (u, e)) abort (); }
Go to most recent revision | Compare with Previous | Blame | View Log