Bug 52775 - Change default for using FCFID instruction
Summary: Change default for using FCFID instruction
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Michael Meissner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 16:16 UTC by Michael Meissner
Modified: 2012-08-16 22:58 UTC (History)
0 users

See Also:
Host: powerpc64-linux power-linux
Target: powerpc64-linux
Build: powerpc64-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meissner 2012-03-29 16:16:13 UTC
Back in August 2010, when I updated the floating point conversion support for powerpc, I made the default for using the FCFID instruction to be any of: -m64, -mpopcntb (power5), -mcmpb (power6), -mpopcntd (power7), -mvsx.  Evidently any powerpc that can support 64-bit (even if the current target is 32-bit) has the FCFID instruction.  So I would like to modify the trunk and active branches to enable FCFID in 32-bit mode on power4.
Comment 1 Michael Meissner 2012-04-12 17:10:38 UTC
Author: meissner
Date: Thu Apr 12 17:10:27 2012
New Revision: 186387

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186387
Log:
[gcc]
2012-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
	the list of options to enable the FCFID instruction.
	(TARGET_EXTRA_BUILTINS): Adjust comment.

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

	PR target/52775
	* gcc.target/powerpc/pr52775.c: New file.



Added:
    trunk/gcc/testsuite/gcc.target/powerpc/pr52775.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.h
    trunk/gcc/testsuite/ChangeLog
Comment 2 Michael Meissner 2012-04-12 21:00:17 UTC
Author: meissner
Date: Thu Apr 12 21:00:07 2012
New Revision: 186392

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186392
Log:
[gcc]
2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from mainline
	2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
	the list of options to enable the FCFID instruction.
	(TARGET_EXTRA_BUILTINS): Adjust comment.

[gcc/testsuite]
012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from mainline
	2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* gcc.target/powerpc/pr52775.c: New file.


Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.target/powerpc/pr52775.c
      - copied unchanged from r186389, trunk/gcc/testsuite/gcc.target/powerpc/pr52775.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config/rs6000/rs6000.h
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
Comment 3 Michael Meissner 2012-04-13 21:55:24 UTC
Author: meissner
Date: Fri Apr 13 21:55:15 2012
New Revision: 186438

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186438
Log:
[gcc]
2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
	the list of options to enable the FCFID instruction.
	(TARGET_EXTRA_BUILTINS): Adjust comment.

[gcc/testsuite]
2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* gcc.target/powerpc/pr52775.c: New file.



Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.target/powerpc/pr52775.c
      - copied unchanged from r186389, trunk/gcc/testsuite/gcc.target/powerpc/pr52775.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/config/rs6000/rs6000.h
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
Comment 4 Michael Meissner 2012-08-16 22:58:02 UTC
Fixed in April, 2012.