[Bug tree-optimization/55016] request for specific builtins for rcp and rsqrt

2012-10-22 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55016 --- Comment #3 from Marc Glisse 2012-10-23 06:12:30 UTC --- (In reply to comment #2) > For the application I have in mind a global flag will such as -ffaster-math > will not be suitable > as it would affect also places where full "single

[Bug tree-optimization/55016] request for specific builtins for rcp and rsqrt

2012-10-22 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55016 --- Comment #2 from vincenzo Innocente 2012-10-23 05:19:37 UTC --- For the application I have in mind a global flag will such as -ffaster-math will not be suitable as it would affect also places where full "single precision" is still requi

[Bug tree-optimization/55016] request for specific builtins for rcp and rsqrt

2012-10-22 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55016 --- Comment #1 from Marc Glisse 2012-10-22 18:56:42 UTC --- (In reply to comment #0) > void v() { > for(int i=0; i!=1024; ++i) > v0[i] = rsqrtf(v1[i]); > } Doesn't writing v0[i] = 1 / sqrtf(v1[i]) work with suitable fast-math