(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
acle/
jcvt_2.c
       1  /* Test the __jcvt ACLE intrinsic.  */
       2  /* { dg-do run } */
       3  /* { dg-options "-O2 -march=armv8.3-a -save-temps" } */
       4  /* { dg-require-effective-target aarch64_fjcvtzs_hw } */
       5  
       6  #include <arm_acle.h>
       7  
       8  extern void abort (void);
       9  
      10  #ifdef __ARM_FEATURE_JCVT
      11  volatile int32_t x;
      12  
      13  int __attribute__((noinline))
      14  foo (double a, int b, int c)
      15  {
      16    b = b > c;
      17    x = __jcvt (a);
      18    return b;
      19  }
      20  
      21  int
      22  main (void)
      23  {
      24    int x = foo (1.1, 2, 3);
      25    if (x)
      26      abort ();
      27  
      28    return 0;
      29  }
      30  
      31  #endif
      32  
      33  /* { dg-final { scan-assembler-times "fjcvtzs\tw\[0-9\]+, d\[0-9\]+\n" 1 } } */