(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
vector/
long-double-to-decimal64.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O3 -march=z14 -mzarch --save-temps" } */
       3  /* { dg-do run { target { s390_z14_hw } } } */
       4  #include <assert.h>
       5  
       6  __attribute__ ((noipa)) static _Decimal64
       7  long_double_to_decimal64 (long double x)
       8  {
       9    return x;
      10  }
      11  
      12  /* { dg-final { scan-assembler-times {\n\tpfpo\n} 1 } } */
      13  
      14  int
      15  main (void)
      16  {
      17    assert (long_double_to_decimal64 (42.L) == (_Decimal64) 42.);
      18    assert (long_double_to_decimal64 (-42.L) == (_Decimal64) -42.);
      19  }