view gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mdejagnu-cpu=power9 -O2 -mpower9-minmax" } */
/* { dg-final { scan-assembler-not "xsmaxcdp"   } } */
/* { dg-final { scan-assembler-not "xsmincdp"   } } */

double
dbl_max1 (double a, double b)
{
  return a < b ? b : a;
}

double
dbl_min1 (double a, double b)
{
  return a > b ? b : a;
}