summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/pmull_1.c
blob: a97dcedfea8c9594fee31398b52512e5b4f3fa19 (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-options "-march=armv8-a+crypto" } */

#include "arm_neon.h"

poly128_t
test_vmull_p64 (poly64_t a, poly64_t b)
{
  return vmull_p64 (a, b);
}

/* { dg-final { scan-assembler-times "pmull\\tv" 1 } } */

poly128_t
test_vmull_high_p64 (poly64x2_t a, poly64x2_t b)
{
  return vmull_high_p64 (a, b);
}

/* { dg-final { scan-assembler-times "pmull2\\tv" 1 } } */