blob: c12040c517f2c8de174a443f6b88df61ab1f9883 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
/* { dg-add-options arm_v8_1m_mve } */
/* { dg-additional-options "-O3" } */
/* Derived from gcc.c-torture/compile/20160205-1.c. */
unsigned int a[32];
int fn1(int d) {
int c = 2;
for (int b = 0; b < 32; b++)
if (a[b])
c = 3;
return c;
}
/* { dg-final { scan-assembler-times {\t.word\t0\n} 4 } } */ /* 'false' mask. */
/* { dg-final { scan-assembler-not {\t.word\t1\n} } } */ /* 'true' mask. */
/* { dg-final { scan-assembler-times {\t.word\t2\n} 4 } } */ /* Initial value for c. */
/* { dg-final { scan-assembler-times {\t.word\t3\n} 4 } } */ /* Possible value for c. */