Fix can_change_mode_class for big-endian on Arm
authorTamar Christina <tamar.christina@arm.com>
Thu, 5 Jul 2018 10:37:36 +0000 (10:37 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Thu, 5 Jul 2018 10:37:36 +0000 (10:37 +0000)
commit6fc2658638727f52780fe35c1dfabca402fd9481
tree5800f22916975f54073e096d52c35e067e4e9154
parentd6e5a37a0402177713e9496f0d852e2e1147437f
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.

From-SVN: r262436
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/big-endian-subreg.c [new file with mode: 0644]