rs6000.c (rs6000_expand_builtin): Do not do the switch statement mapping KF built-ins to TF built-ins if...

[gcc]
2017-11-15  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/rs6000.c (rs6000_expand_builtin): Do not do the
	switch statement mapping KF built-ins to TF built-ins if we don't
	have the proper ISA 3.0 assembler support.

[gcc/testsuite]
2017-11-15  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* gcc.target/powerpc/bfp/bfp.exp: Look for *.c files, not *.c*
	files to prevent ~ files from getting recognized.
	* gcc.target/powerpc/dfp/dfp.exp: Likewise.
	* gcc.target/powerpc/vsu/vsu.exp: Likewise.

From-SVN: r254839
This commit is contained in:
Michael Meissner 2017-11-16 18:35:42 +00:00 committed by Michael Meissner
parent 9d99775c34
commit 285346b5eb
6 changed files with 21 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2017-11-15 Michael Meissner <meissner@linux.vnet.ibm.com>
* config/rs6000/rs6000.c (rs6000_expand_builtin): Do not do the
switch statement mapping KF built-ins to TF built-ins if we don't
have the proper ISA 3.0 assembler support.
2017-11-16 Jan Hubicka <hubicka@ucw.cz>
* tree-emutls.c (lower_emutls_data): Remove unused bb_freq.

View File

@ -16690,7 +16690,10 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
double (KFmode) or long double is IEEE 128-bit (TFmode). It is simpler if
we only define one variant of the built-in function, and switch the code
when defining it, rather than defining two built-ins and using the
overload table in rs6000-c.c to switch between the two. */
overload table in rs6000-c.c to switch between the two. If we don't have
the proper assembler, don't do this switch because CODE_FOR_*kf* and
CODE_FOR_*tf* will be CODE_FOR_nothing. */
#ifdef HAVE_AS_POWER9
if (FLOAT128_IEEE_P (TFmode))
switch (icode)
{
@ -16711,6 +16714,7 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
case CODE_FOR_xsiexpqpf_kf: icode = CODE_FOR_xsiexpqpf_tf; break;
case CODE_FOR_xststdcqp_kf: icode = CODE_FOR_xststdcqp_tf; break;
}
#endif
if (TARGET_DEBUG_BUILTIN)
{

View File

@ -1,3 +1,10 @@
2017-11-15 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/bfp/bfp.exp: Look for *.c files, not *.c*
files to prevent ~ files from getting recognized.
* gcc.target/powerpc/dfp/dfp.exp: Likewise.
* gcc.target/powerpc/vsu/vsu.exp: Likewise.
2017-11-16 Henry Linjamäki <henry.linjamaki@parmance.com>
* brig.dg/test/gimple/vector.hsail: Update for HSA registers' tree

View File

@ -34,7 +34,7 @@ load_lib torture-options.exp
# Initialize.
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
# All done.
dg-finish

View File

@ -33,7 +33,7 @@ load_lib torture-options.exp
# Initialize.
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
# All done.
dg-finish

View File

@ -34,7 +34,7 @@ load_lib torture-options.exp
# Initialize.
dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
# All done.
dg-finish