Commit 285346b5 by Michael Meissner Committed by Michael Meissner

rs6000.c (rs6000_expand_builtin): Do not do the switch statement mapping KF…

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
parent 9d99775c
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> 2017-11-16 Jan Hubicka <hubicka@ucw.cz>
* tree-emutls.c (lower_emutls_data): Remove unused bb_freq. * tree-emutls.c (lower_emutls_data): Remove unused bb_freq.
...@@ -16690,7 +16690,10 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, ...@@ -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 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 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 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)) if (FLOAT128_IEEE_P (TFmode))
switch (icode) switch (icode)
{ {
...@@ -16711,6 +16714,7 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, ...@@ -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_xsiexpqpf_kf: icode = CODE_FOR_xsiexpqpf_tf; break;
case CODE_FOR_xststdcqp_kf: icode = CODE_FOR_xststdcqp_tf; break; case CODE_FOR_xststdcqp_kf: icode = CODE_FOR_xststdcqp_tf; break;
} }
#endif
if (TARGET_DEBUG_BUILTIN) if (TARGET_DEBUG_BUILTIN)
{ {
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> 2017-11-16 Henry Linjamäki <henry.linjamaki@parmance.com>
* brig.dg/test/gimple/vector.hsail: Update for HSA registers' tree * brig.dg/test/gimple/vector.hsail: Update for HSA registers' tree
......
...@@ -34,7 +34,7 @@ load_lib torture-options.exp ...@@ -34,7 +34,7 @@ load_lib torture-options.exp
# Initialize. # Initialize.
dg-init dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
# All done. # All done.
dg-finish dg-finish
...@@ -33,7 +33,7 @@ load_lib torture-options.exp ...@@ -33,7 +33,7 @@ load_lib torture-options.exp
# Initialize. # Initialize.
dg-init dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
# All done. # All done.
dg-finish dg-finish
...@@ -34,7 +34,7 @@ load_lib torture-options.exp ...@@ -34,7 +34,7 @@ load_lib torture-options.exp
# Initialize. # Initialize.
dg-init dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c*]] "" $DEFAULT_CFLAGS dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" $DEFAULT_CFLAGS
# All done. # All done.
dg-finish dg-finish
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment