This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/70738] Add -mgeneral-regs-only option


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70738

--- Comment #6 from uros at gcc dot gnu.org ---
Author: uros
Date: Wed May 25 18:58:49 2016
New Revision: 236738

URL: https://gcc.gnu.org/viewcvs?rev=236738&root=gcc&view=rev
Log:
        PR target/70738
        * common/config/i386/i386-common.c
        (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
        (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
        MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
        * config/i386/i386.opt (ix86_target_flags): Add new Variable.
        (-mgeneral-regs-only): Add new option.
        * config/i386/i386.c (ix86_option_override_internal): Don't enable
        x87 instructions if only general registers are allowed.
        (ix86_target_string): Add ix86_flags argument. Handle additional
        flags options through ix86_flags argument.  Update all callers.
        * doc/invoke.texi: Document -mgeneral-regs-only.

testsuite/ChangeLog:

        PR target/70738
        * gcc.target/i386/pr70738-1.c: New test.
        * gcc.target/i386/pr70738-2.c: Likewise.
        * gcc.target/i386/pr70738-3.c: Likewise.
        * gcc.target/i386/pr70738-4.c: Likewise.
        * gcc.target/i386/pr70738-5.c: Likewise.
        * gcc.target/i386/pr70738-6.c: Likewise.
        * gcc.target/i386/pr70738-7.c: Likewise.
        * gcc.target/i386/pr70738-8.c: Likewise.
        * gcc.target/i386/pr70738-9.c: Likewise.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr70738-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-2.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-3.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-4.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-5.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-6.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-7.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-8.c
    trunk/gcc/testsuite/gcc.target/i386/pr70738-9.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/common/config/i386/i386-common.c
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/i386.opt
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]