Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-require-effective-target c99_runtime } */ /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ float f(float x) { return x * (x > 0.f ? -1.f : 1.f); } float f1(float x) { return x * (x > 0.f ? 1.f : -1.f); } float g(float x) { return x * (x >= 0.f ? -1.f : 1.f); } float g1(float x) { return x * (x >= 0.f ? 1.f : -1.f); } float h(float x) { return x * (x < 0.f ? -1.f : 1.f); } float h1(float x) { return x * (x < 0.f ? 1.f : -1.f); } float i(float x) { return x * (x <= 0.f ? -1.f : 1.f); } float i1(float x) { return x * (x <= 0.f ? 1.f : -1.f); } /* { dg-final { scan-tree-dump-times "ABS" 8 "gimple"} } */