rs6000-c.c (altivec_overloaded_builtins): Add array entries to represent __ieee128...
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Fri, 14 Jul 2017 20:16:57 +0000 (20:16 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Fri, 14 Jul 2017 20:16:57 +0000 (20:16 +0000)
commitb70bb05bd189a80c79225f7056441d7e3e1c0b6c
tree559859bcfcc7636338a0051283b8444cac02f314
parent20316b9b2ee5fd60e40a84e64e8715b55092beb6
rs6000-c.c (altivec_overloaded_builtins): Add array entries to represent __ieee128 versions of the scalar_test_data_class...

gcc/ChangeLog:

2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
array entries to represent __ieee128 versions of the
scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
scalar_extract_sig, and scalar_insert_exp built-in functions.
(altivec_resolve_overloaded_builtin): Add special case handling
for the __builtin_scalar_insert_exp function, as represented by
the P9V_BUILTIN_VEC_VSIEDP constant.
* config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
exponent support for __ieee128 argument.
(VSESQP): Add scalar extract signature support for __ieee128
argument.
(VSTDCNQP): Add scalar test negative support for __ieee128
argument.
(VSIEQP): Add scalar insert exponent support for __int128 argument
with __ieee128 result.
(VSIEQPF): Add scalar insert exponent support for __ieee128
argument with __ieee128 result.
(VSTDCQP): Add scalar test data class support for __ieee128
argument.
(VSTDCNQP): Add overload support for scalar test negative with
__ieee128 argument.
(VSTDCQP): Add overload support for scalar test data class
__ieee128 argument.
* config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
UNSPEC_VSX_SXSIGDP.
(UNSPEC_VSX_SIEXPQP): New constant.
(xsxexpqp): New insn for VSX scalar extract exponent quad
precision.
(xsxsigqp): New insn for VSX scalar extract significand quad
precision.
(xsiexpqpf): New insn for VSX scalar insert exponent quad
precision with floating point argument.
(xststdcqp): New expand for VSX scalar test data class quad
precision.
(xststdcnegqp): New expand for VSX scalar test negative quad
precision.
(xststdcqp): New insn to match expansions for VSX scalar test data
class quad precision and VSX scalar test negative quad precision.
* config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
special case operand checking to enforce that second operand of
VSX scalar test data class with quad precision argument is a 7-bit
unsigned literal.
* doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
prototypes and descriptions of __ieee128 versions of
scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
scalar_test_data_class, and scalar_test_neg built-in functions.

gcc/testsuite/ChangeLog:

2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target/powerpc/bfp/scalar-cmp-exp-eq-3.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-eq-4.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-gt-3.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-gt-4.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-lt-3.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-lt-4.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-unordered-3.c: New test.
* gcc.target/powerpc/bfp/scalar-cmp-exp-unordered-4.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-exp-3.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-exp-4.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-exp-5.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-exp-6.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-exp-7.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-sig-3.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-sig-4.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-sig-5.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-sig-6.c: New test.
* gcc.target/powerpc/bfp/scalar-extract-sig-7.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-10.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-11.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-12.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-13.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-14.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-15.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-6.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-7.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-8.c: New test.
* gcc.target/powerpc/bfp/scalar-insert-exp-9.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-10.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-11.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-12.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-13.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-14.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-15.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-8.c: New test.
* gcc.target/powerpc/bfp/scalar-test-data-class-9.c: New test.
* gcc.target/powerpc/bfp/scalar-test-neg-4.c: New test.
* gcc.target/powerpc/bfp/scalar-test-neg-5.c: New test.
* gcc.target/powerpc/bfp/scalar-test-neg-6.c: New test.
* gcc.target/powerpc/bfp/scalar-test-neg-7.c: New test.
* gcc.target/powerpc/bfp/scalar-test-neg-8.c: New test.
* gcc.target/powerpc/bfp/vec-extract-exp-4.c: New test.
* gcc.target/powerpc/bfp/vec-extract-exp-5.c: New test.
* gcc.target/powerpc/bfp/vec-extract-sig-4.c: New test.
* gcc.target/powerpc/bfp/vec-extract-sig-5.c: New test.
* gcc.target/powerpc/bfp/vec-insert-exp-10.c: New test.
* gcc.target/powerpc/bfp/vec-insert-exp-11.c: New test.
* gcc.target/powerpc/bfp/vec-insert-exp-8.c: New test.
* gcc.target/powerpc/bfp/vec-insert-exp-9.c: New test.
* gcc.target/powerpc/bfp/vec-test-data-class-8.c: New test.
* gcc.target/powerpc/bfp/vec-test-data-class-9.c: New test.

From-SVN: r250214
58 files changed:
gcc/ChangeLog
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000-c.c
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/vsx.md
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-eq-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-eq-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-gt-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-gt-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-lt-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-lt-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-unordered-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-cmp-exp-unordered-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-exp-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-exp-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-exp-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-exp-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-exp-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-sig-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-sig-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-sig-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-sig-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-extract-sig-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-11.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-12.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-13.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-14.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-15.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-insert-exp-9.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-11.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-12.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-13.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-14.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-15.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-data-class-9.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/scalar-test-neg-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-extract-exp-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-extract-exp-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-extract-sig-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-extract-sig-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-insert-exp-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-insert-exp-11.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-insert-exp-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-insert-exp-9.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/bfp/vec-test-data-class-9.c [new file with mode: 0644]