summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/sve_while_maxiter_1.c
blob: ead821b43ca49d40b7c728dc50507ce468a13c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do assemble } */
/* { dg-options "-O3 -march=armv8-a+sve --save-temps" } */

int
loop (short b)
{
  int c = 0;
l1:
  b++;
  c |= b;
  if (b)
    goto l1;
  return c;
}

/* { dg-final { scan-assembler-times {\tadd\tx[0-9], x[0-9], 1\n} 1 } } */