Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/copy-sign-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-options "-O2 -ffast-math -fdump-tree-optimized" } */ |
2 /* { dg-do compile } */ | |
3 float f(float x) | |
4 { | |
5 float t = __builtin_copysignf (1.0f, x); | |
6 return x * t; | |
7 } | |
8 float f1(float x) | |
9 { | |
10 float t = __builtin_copysignf (1.0f, -x); | |
11 return x * t; | |
12 } | |
13 /* { dg-final { scan-tree-dump-times "ABS" 2 "optimized"} } */ |