Message ID | alpine.LSU.2.20.1903271416310.4934@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Series | New testcase | expand |
Index: gcc/testsuite/gcc.dg/torture/20190327-1.c =================================================================== --- gcc/testsuite/gcc.dg/torture/20190327-1.c (nonexistent) +++ gcc/testsuite/gcc.dg/torture/20190327-1.c (working copy) @@ -0,0 +1,18 @@ +/* { dg-do run } */ + +typedef long v2di __attribute__((vector_size(16))); +v2di v; +void __attribute__((noinline)) +foo() +{ + v = (v2di){v[1], v[0]}; +} + +int main() +{ + v[0] = 1; + foo (); + if (v[0] != 0 || v[1] != 1) + __builtin_abort (); + return 0; +}