(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
vector/
fp-signedint-convert-1.c
       1  /* { dg-compile } */
       2  /* { dg-options "-O3 -march=z13 -mzarch" } */
       3  
       4  typedef long long __attribute__((vector_size(16))) v2di;
       5  typedef double __attribute__((vector_size(16))) v2df;
       6  
       7  v2di longvec;
       8  v2df doublevec;
       9  
      10  v2di
      11  tolong (v2df a)
      12  {
      13    v2di out = (v2di){ (long long)a[0], (long long)a[1] };
      14    return out;
      15  }
      16  
      17  /* { dg-final { scan-assembler-times "vcgdb\t%v24,%v24,0,5" 1 } } */
      18  
      19  v2df
      20  todouble (v2di a)
      21  {
      22    v2df out = (v2df){ (double)a[0], (double)a[1] };
      23    return out;
      24  }
      25  
      26  /* { dg-final { scan-assembler-times "vcdgb\t%v24,%v24,0,0" 1 } } */