aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/crypto-vaesmcq_u8.c
blob: cae8bd096b85777ed42ca652b4fd1522d70d1c8d (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 = vaesmcq_u8 (a);
  return b[0];
}

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