2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / pr77822-1.C
blobbd5a9b4abd8833d3da8f110e7b99382c172763ae
1 /* Regression test for PR/77822.  */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -march=zEC12" } */
6 class A {
7   void m_fn1();
8   char m_datawidth;
9   char m_subunits;
10   int m_subunit_infos[];
12 int a;
13 long b;
14 void A::m_fn1() {
15   int c = 32, d = m_datawidth / c;
16   for (int e = 0; e < d; e++) {
17     int f = e * 32;
18     if (b >> f & 1)
19       m_subunit_infos[m_subunits] = a;
20   }