[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/21118] As silently converts registers to immediates

From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/21118] As silently converts registers to immediates
Date: Tue, 14 Feb 2017 10:43:13 +0000


--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:


commit 7e0de605cbacbbbb2531bb70506c0843aea13111
Author: Alan Modra <address@hidden>
Date:   Tue Feb 14 20:38:21 2017 +1030

    PowerPC register expression checks

    This stops powerpc gas blithely accepting such nonsense as
    "addi %f4,%cr3,%r31".

        PR 21118
        * NEWS: Mention powerpc register checks.
        * config/tc-ppc.c (struct pd_reg): Make value a short.  Add flags.
        (pre_defined_registers): Delete fpscr and pmr entries.  Set
        register type in flags.
        (cr_names): Set type in flags.
        (reg_name_search): Return pointer to struct pd_reg rather than value.
        (register_name): Adjust to suit.  Set X_md from flags.
        (ppc_parse_name): Likewise.
        (ppc_optimize_expr): New function.
        (md_assemble): Verify expresion reg flags match operand.
        * config/tc-ppc.h (md_optimize_expr): Define.
        (ppc_optimize_expr): Declare.
        * opcode/ppc.h (PPC_OPERAND_*): Reassign values, regs first.
        * ppc-opc.c (powerpc_operands): Flag SPR, SPRG and TBR entries
        with PPC_OPERAND_SPR.  Flag PSQ and PSQM with PPC_OPERAND_GQR.

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]