This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/84711] AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode.
- From: "tnfchris at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Jul 2018 10:38:08 +0000
- Subject: [Bug target/84711] AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode.
- Auto-submitted: auto-generated
- References: <bug-84711-4@http.gcc.gnu.org/bugzilla/>
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