From: Yvan Roux Date: Fri, 10 Apr 2015 19:03:27 +0000 (+0000) Subject: Add missing testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aec98c0d5e72dac9c6acf133ec6405dc9195101b;p=gcc.git Add missing testcase. 2015-04-19 Yvan Roux PR target/65648 * gcc.target/arm/pr65647-2.c: New. From-SVN: r221981 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f2ee96dacda..99be9991d3f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-04-19 Yvan Roux + + PR target/65648 + * gcc.target/arm/pr65647-2.c: New. + 2015-04-10 Kyrylo Tkachov PR target/65694 diff --git a/gcc/testsuite/gcc.target/arm/pr65647-2.c b/gcc/testsuite/gcc.target/arm/pr65647-2.c new file mode 100644 index 00000000000..f2985f8eaed --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr65647-2.c @@ -0,0 +1,32 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -marm -march=armv6 -std=c99" } */ + +typedef struct { + int i; +} x264_union32_t; +typedef struct { + int level_idx; +} trellis_node_t; +int a, c, d, f, h, i = (int)&c; +trellis_node_t b[1][1]; +short *e = 0; +short g; +void fn1() { + int k[64 * 8 * 2]; + trellis_node_t *l = b[0]; + for (; i >= d; i--) { + if (e[i]) { + for (int j = 1; j < 8; j++) { + ((x264_union32_t *)&k[a])->i = l[j].level_idx; + l[j].level_idx = a; + a++; + } + continue; + } + for (int j;; j++) + ; + } + int m[6] __attribute__((aligned(16))); + for (; h; h++, f++) + g = m[h]; +}