22 lines
381 B
C
22 lines
381 B
C
/* Regression test for PR/77822. */
|
|
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-O3 -march=zEC12" } */
|
|
|
|
class A {
|
|
void m_fn1();
|
|
char m_datawidth;
|
|
char m_subunits;
|
|
int m_subunit_infos[];
|
|
};
|
|
int a;
|
|
long b;
|
|
void A::m_fn1() {
|
|
int c = 32, d = m_datawidth / c;
|
|
for (int e = 0; e < d; e++) {
|
|
int f = e * 32;
|
|
if (b >> f & 1)
|
|
m_subunit_infos[m_subunits] = a;
|
|
}
|
|
}
|