(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
neon-vceq_p64.c
       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 } */
       5  
       6  #include "arm_neon.h"
       7  #include <stdio.h>
       8  
       9  extern void abort (void);
      10  
      11  int
      12  main (void)
      13  {
      14    uint64_t args[] = { 0x0, 0xdeadbeef, ~0xdeadbeef, 0xffff,
      15                        ~0xffff, 0xffffffff, ~0xffffffff, ~0x0 };
      16    int i, j;
      17  
      18    for (i = 0; i < sizeof (args) / sizeof (args[0]); ++i)
      19      {
      20         for (j = 0; j < sizeof (args) / sizeof (args[0]); ++j)
      21           {
      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;
      27  
      28             if (res != exp)
      29               {
      30                 fprintf (stderr, "vceq_p64 (a1= %lx, a2= %lx)"
      31                                  " returned %lx, expected %lx\n",
      32                                   a1, a2, res, exp);
      33                 abort ();
      34               }
      35           }
      36      }
      37    return 0;
      38  }