/* { dg-do compile } */ /* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */ /* { dg-add-options arm_v8_1m_mve_fp } */ /* { dg-additional-options "-O3 -funsafe-math-optimizations" } */ /* Derived from gcc.c-torture/compile/20160205-1.c. */ float a[32]; int fn1(int d) { int c = 4; for (int b = 0; b < 32; b++) if (a[b] != 2.0f) c = 5; return c; } /* { dg-final { scan-assembler-times {\tvmov\.f32\tq[0-7], #2\.0e\+0 @ v4sf} 1 } } */ /* { dg-final { scan-assembler-not {\t.word\t1073741824\n} } } */ /* { dg-final { scan-assembler-times {\tvmov\.i32\tq[0-7], #0x4 @ v4si} 1 } } */ /* { dg-final { scan-assembler-not {\t.word\t4\n} } } */ /* { dg-final { scan-assembler-times {\tvmov\.i32\tq[0-7], #0x5 @ v4si} 1 } } */ /* { dg-final { scan-assembler-not {\t.word\t5\n} } } */ /* { dg-final { scan-assembler-not {\t.word\t1\n} } } */ /* 'true' mask. */ /* { dg-final { scan-assembler-not {\t.word\t0\n} } } */ /* 'false' mask. */