Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/recip_sqrt_mult_1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
131 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-Ofast -fdump-tree-recip" } */ | |
145 | 3 /* { dg-additional-options "-fcompare-debug" { target { ! powerpc-ibm-aix* } } } */ |
131 | 4 |
5 double res, res2, tmp; | |
6 void | |
7 foo (double a, double b) | |
8 { | |
9 tmp = 1.0 / __builtin_sqrt (a); | |
10 res = tmp * tmp; | |
11 res2 = a * tmp; | |
12 } | |
13 | |
14 /* { dg-final { scan-tree-dump "Optimizing reciprocal sqrt multiplications" "recip" } } */ | |
15 /* { dg-final { scan-tree-dump "Replacing squaring multiplication" "recip" } } */ | |
16 /* { dg-final { scan-tree-dump "Replacing original division" "recip" } } */ |