Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / arm / neon-vceq_p64.c
blob21a6a78a22113393934afe12039f69a425a595f4
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_crypto_ok } */
3 /* { dg-require-effective-target arm_neon_hw } */
4 /* { dg-add-options arm_crypto } */
6 #include "arm_neon.h"
7 #include <stdio.h>
9 extern void abort (void);
11 int
12 main (void)
14 uint64_t args[] = { 0x0, 0xdeadbeef, ~0xdeadbeef, 0xffff,
15 ~0xffff, 0xffffffff, ~0xffffffff, ~0x0 };
16 int i, j;
18 for (i = 0; i < sizeof (args) / sizeof (args[0]); ++i)
20 for (j = 0; j < sizeof (args) / sizeof (args[0]); ++j)
22 uint64_t a1 = args[i];
23 uint64_t a2 = args[j];
24 uint64_t res = vceq_p64 (vreinterpret_p64_u64 (a1),
25 vreinterpret_p64_u64 (a2));
26 uint64_t exp = (a1 == a2) ? ~0x0 : 0x0;
28 if (res != exp)
30 fprintf (stderr, "vceq_p64 (a1= %lx, a2= %lx)"
31 " returned %lx, expected %lx\n",
32 a1, a2, res, exp);
33 abort ();
37 return 0;