From 079c81dabf6a5f2fdb054651ec78f74a590a4ad0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 27 Mar 2019 13:18:39 +0000 Subject: [PATCH] 20190327-1.c: New testcase. 2019-03-27 Richard Biener * gcc.dg/torture/20190327-1.c: New testcase. From-SVN: r269964 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/torture/20190327-1.c | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/torture/20190327-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 00eac8c..0679cb7 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 0000000..bb20e7f --- /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; +} -- 2.7.4