(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
zvector/
pr82317.c
       1  /* { dg-do compile { target { s390*-*-* } } } */
       2  /* { dg-options "-march=z13 -mzarch -mzvector" } */
       3  
       4  /* With IBM z14 a hardware instruction for floating point min and max
       5     has been added while for IBM z13 we emulated min/max for vector
       6     double with compare and select.  This testcase makes sure that we
       7     fall back to the emulated variant when compiling for z13.  */
       8  
       9  #include <vecintrin.h>
      10  
      11  vector double
      12  foo (vector double a, vector double b) {
      13    return vec_min (a, b);
      14  }
      15  
      16  vector double
      17  bar (vector double a, vector double b) {
      18    return vec_max (a, b);
      19  }