Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.target/powerpc/p9-minmax-3.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 2b5abeee2509 |
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 } |