rs6000: Add scalar cfuged instruction
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Mon, 11 May 2020 16:01:32 +0000 (11:01 -0500)
committerBill Schmidt <wschmidt@linux.ibm.com>
Mon, 11 May 2020 16:01:32 +0000 (11:01 -0500)
commit2403d3d7a5e4878f211d868fd4b76a4b70ce2a54
tree9228482ac0ba952e4b3d733fa58a15118caf2c5c
parent84f4954c38228e4cb3e6f0b5471883e6c2523631
rs6000: Add scalar cfuged instruction

Add the centifuge-doubleword instruction and built-in access.

[gcc]

2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
#define.
(BU_FUTURE_MISC_1): Likewise.
(BU_FUTURE_MISC_2): Likewise.
(BU_FUTURE_MISC_3): Likewise.
(__builtin_cfuged): New built-in function definition.
* config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
(cfuged): New insn.
* doc/extend.texi (Basic PowerPC Built-in Functions Available for
a Future Architecture): New subsubsection.

[gcc/testsuite]

2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target.powerpc/cfuged-0.c: New test.
* gcc.target.powerpc/cfuged-1.c: New test.
gcc/ChangeLog
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000.md
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/cfuged-0.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/cfuged-1.c [new file with mode: 0644]