20190327-1.c: New testcase.

2019-03-27  Richard Biener  <rguenther@suse.de>

	* gcc.dg/torture/20190327-1.c: New testcase.

From-SVN: r269964
This commit is contained in:
Richard Biener 2019-03-27 13:18:39 +00:00 committed by Richard Biener
parent d5f48c7c62
commit 079c81dabf
2 changed files with 22 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2019-03-27 Richard Biener <rguenther@suse.de>
* gcc.dg/torture/20190327-1.c: New testcase.
2019-03-27 Paul Thomas <pault@gcc.gnu.org>
PR fortran/88247

View file

@ -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;
}