re PR target/84914 (PowerPC complex multiply/divide calls the wrong function when...
commit566a2fa7e8b3f71c974e034c2b4c33e497c89a29
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Tue, 27 Mar 2018 23:14:22 +0000 (27 23:14 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 27 Mar 2018 23:14:22 +0000 (27 23:14 +0000)
tree066f92cc658234d41fc2b5d288f707c43ab03827
parentfc5dbf7c5449e918cb5570d6edd861fe618830d3
re PR target/84914 (PowerPC complex multiply/divide calls the wrong function when -mabi=ieeelongdouble)

[gcc]
2018-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/84914
* config/rs6000/rs6000.c (create_complex_muldiv): New helper
function to create the function decl for complex long double
multiply and divide for -mabi=ieeelongdouble.
(init_float128_ieee): Call it.

[gcc/testsuite]
2018-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/84914
* gcc.target/powerpc/mulkc-2.c: New tests to make sure complex
long double multiply/divide uses the correct function.
* gcc.target/powerpc/mulkc-3.c: Likewise.
* gcc.target/powerpc/divkc-2.c: Likewise.
* gcc.target/powerpc/divkc-3.c: Likewise.

From-SVN: r258908
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/divkc3-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/divkc3-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/mulkc3-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/mulkc3-3.c [new file with mode: 0644]