aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/crypto-vaesimcq_u8.c
blob: fbbfda609fc3ffcdd8a53886a0186086c15ad9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { 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;
  int i = 0;

  for (i = 0; i < 16; ++i)
    a[i] = i;

  b = vaesimcq_u8 (a);
  return b[0];
}

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