aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/crypto-vaeseq_u8.c
blob: f47864662ebe42d7d51ae1284f90d530a6425f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-require-effective-target arm_crypto_ok } */
/* { dg-add-options arm_crypto } */

#include "arm_neon.h"

int
foo (void)
{
  uint8x16_t a, b, c;
  int i = 0;

  for (i = 0; i < 16; ++i)
    {
      a[i] = i;
      b[i] = 15 - i;
    }
  c = vaeseq_u8 (a, b);
  return c[0];
}

/* { dg-final { scan-assembler "aese.8\tq\[0-9\]+, q\[0-9\]+" } } */