RS6000 Allow builtin initialization regardless of mask
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Mon, 30 Mar 2020 17:13:57 +0000 (12:13 -0500)
committerWill Schmidt <will_schmidt@vnet.ibm.com>
Mon, 30 Mar 2020 17:13:57 +0000 (12:13 -0500)
commit841e721579bec2dbab9cfc2b34929dcde56816a2
tree74fae2187ffa3530911ad2f95fa79e2e0b866e9e
parent48c18af43faa50c768a440904d67cdf1fc40a703
RS6000 Allow builtin initialization regardless of mask

  Disable the code that limits initialization of builtins based
on the rs6000_builtin_mask.  This allows all built-ins to be
properly referenced when building code using #pragma for cpu
targets newer than what was specified by the -mcpu default.
The use of built-ins is still properly limited by logic within
altivec_resolve_overloaded_builtin().

2020-03-30  Will Schmidt  <will_schmidt@vnet.ibm.com>

gcc/
    * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
    to skip defining builtins based on builtin_mask.

gcc/testsuite/
    * gcc.target/powerpc/pragma_power6.c: New.
    * gcc.target/powerpc/pragma_power7.c: New.
    * gcc.target/powerpc/pragma_power8.c: New.
    * gcc.target/powerpc/pragma_power9.c: New.
    * gcc.target/powerpc/pragma_misc9.c: New.
    * gcc.target/powerpc/vsu/vec-all-nez-7.c: Update error message.
    * gcc.target/powerpc/vsu/vec-any-eqz-7.c: Update error message.
gcc/ChangeLog
gcc/config/rs6000/rs6000-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pragma_misc9.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pragma_power6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pragma_power7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pragma_power8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pragma_power9.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/vsu/vec-all-nez-7.c
gcc/testsuite/gcc.target/powerpc/vsu/vec-any-eqz-7.c