Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/pr70421.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
/* PR target/70421 */ /* { dg-do run } */ /* { dg-require-effective-target int32plus } */ /* { dg-additional-options "-Wno-psabi -w" } */ typedef unsigned V __attribute__ ((vector_size (64))); unsigned __attribute__ ((noinline, noclone)) foo (unsigned x, V u, V v) { v[1] ^= v[2]; x ^= ((V) v)[u[0]]; return x; } int main () { unsigned x = foo (0x10, (V) { 1 }, (V) { 0x100, 0x1000, 0x10000 }); if (x != 0x11010) __builtin_abort (); return 0; }