Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 /* { dg-do compile { target { powerpc*-*-* } } } */ |
2 /* { dg-require-effective-target powerpc_p9vector_ok } */ | |
3 /* { dg-options "-mdejagnu-cpu=power9 -O2 -mpower9-minmax" } */ | |
4 /* { dg-final { scan-assembler-not "xsmaxcdp" } } */ | |
5 /* { dg-final { scan-assembler-not "xsmincdp" } } */ | |
6 | |
7 double | |
8 dbl_max1 (double a, double b) | |
9 { | |
10 return a < b ? b : a; | |
11 } | |
12 | |
13 double | |
14 dbl_min1 (double a, double b) | |
15 { | |
16 return a > b ? b : a; | |
17 } |