From: Richard Biener Date: Wed, 27 Mar 2019 13:18:39 +0000 (+0000) Subject: 20190327-1.c: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=079c81dabf6a5f2fdb054651ec78f74a590a4ad0;p=gcc.git 20190327-1.c: New testcase. 2019-03-27 Richard Biener * gcc.dg/torture/20190327-1.c: New testcase. From-SVN: r269964 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 00eac8cde77..0679cb72e52 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-03-27 Richard Biener + + * gcc.dg/torture/20190327-1.c: New testcase. + 2019-03-27 Paul Thomas PR fortran/88247 diff --git a/gcc/testsuite/gcc.dg/torture/20190327-1.c b/gcc/testsuite/gcc.dg/torture/20190327-1.c new file mode 100644 index 00000000000..bb20e7fba99 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/20190327-1.c @@ -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; +}