diff options
author | Xionghu Luo <luoxhu@linux.ibm.com> | 2021-09-06 20:22:50 -0500 |
---|---|---|
committer | Xionghu Luo <luoxhu@linux.ibm.com> | 2021-09-06 20:22:50 -0500 |
commit | 546ecb0054af302acf0839c7f3eb78598f8c0672 (patch) | |
tree | 1ac283fa3b5267e1cbf24d90ded162587be5611d /gcc/fortran/trans-openmp.c | |
parent | 58572bbb62c9588c658fd7656ee359d27c306fb2 (diff) | |
download | gcc-546ecb0054af302acf0839c7f3eb78598f8c0672.zip gcc-546ecb0054af302acf0839c7f3eb78598f8c0672.tar.gz gcc-546ecb0054af302acf0839c7f3eb78598f8c0672.tar.bz2 |
rs6000: Expand fmod and remainder when built with fast-math [PR97142]
fmod/fmodf and remainder/remainderf could be expanded instead of library
call when fast-math build, which is much faster.
fmodf:
fdivs f0,f1,f2
friz f0,f0
fnmsubs f1,f2,f0,f1
remainderf:
fdivs f0,f1,f2
frin f0,f0
fnmsubs f1,f2,f0,f1
SPEC2017 Ofast P8LE: 511.povray_r +1.14%, 526.blender_r +1.72%
gcc/ChangeLog:
2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
PR target/97142
* config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
(remainder<mode>3): Likewise.
gcc/testsuite/ChangeLog:
2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
PR target/97142
* gcc.target/powerpc/pr97142.c: New test.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions