summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/pmull_1.c
blob: bccaec1750e1d0d9986bff693e56a760b619fb40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

/* { 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 } } */

/* { dg-final { cleanup-saved-temps } } */