(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
float128-minmax.c
       1  /* { dg-require-effective-target ppc_float128_hw } */
       2  /* { dg-options "-mpower9-vector -O2 -ffast-math" } */
       3  
       4  #ifndef TYPE
       5  #define TYPE _Float128
       6  #endif
       7  
       8  /* Test that the fminf128/fmaxf128 functions generate if/then/else and not a
       9     call.  */
      10  TYPE f128_min (TYPE a, TYPE b) { return __builtin_fminf128 (a, b); }
      11  TYPE f128_max (TYPE a, TYPE b) { return __builtin_fmaxf128 (a, b); }
      12  
      13  /* Adjust code power10 which has native min/max instructions.  */
      14  /* { dg-final { scan-assembler-times {\mxscmpuqp\M} 2 { target { ! has_arch_pwr10 } } } } */
      15  /* { dg-final { scan-assembler-times {\mxsmincqp\M} 1 { target has_arch_pwr10 } } } */
      16  /* { dg-final { scan-assembler-times {\mxsmaxcqp\M} 1 { target has_arch_pwr10 } } } */
      17  /* { dg-final { scan-assembler-not {\mbl\M} } } */