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/84711] AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode.


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

--- Comment #13 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Author: tnfchris
Date: Thu Jul  5 10:37:36 2018
New Revision: 262436

URL: https://gcc.gnu.org/viewcvs?rev=262436&root=gcc&view=rev
Log:
Fix can_change_mode_class for big-endian on Arm

gcc/

        PR target/84711
        * config/arm/arm.c (arm_can_change_mode_class): Use GET_MODE_UNIT_SIZE
        instead of GET_MODE_SIZE when comparing Units.

gcc/testsuite/

        PR target/84711
        * gcc.target/arm/big-endian-subreg.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/arm/big-endian-subreg.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.c
    trunk/gcc/testsuite/ChangeLog

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