Commit 22534ea5 by Tamar Christina Committed by Tamar Christina

re PR target/84711 (AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode.)

2018-03-15  Tamar Christina  <tamar.christina@arm.com>

	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/
2018-03-15  Tamar Christina  <tamar.christina@arm.com>

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

From-SVN: r258554
parent 74a9301d
2018-03-15 Tamar Christina <tamar.christina@arm.com>
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.
2018-03-15 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR target/68256
......
......@@ -31508,8 +31508,8 @@ arm_can_change_mode_class (machine_mode from, machine_mode to,
{
if (TARGET_BIG_END
&& !(GET_MODE_SIZE (from) == 16 && GET_MODE_SIZE (to) == 8)
&& (GET_MODE_SIZE (from) > UNITS_PER_WORD
|| GET_MODE_SIZE (to) > UNITS_PER_WORD)
&& (GET_MODE_UNIT_SIZE (from) > UNITS_PER_WORD
|| GET_MODE_UNIT_SIZE (to) > UNITS_PER_WORD)
&& reg_classes_intersect_p (VFP_REGS, rclass))
return false;
return true;
......
2018-03-15 Tamar Christina <tamar.christina@arm.com>
PR target/84711
* gcc.target/arm/big-endian-subreg.c: New.
2018-03-15 Jakub Jelinek <jakub@redhat.com>
PR target/84860
......
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-require-effective-target arm_hf_eabi } */
/* { dg-add-options arm_neon } */
/* { dg-additional-options "-mfp16-format=ieee -mfloat-abi=hard" } */
typedef __fp16 v4f16
__attribute__ ((vector_size (8)));
v4f16 fn1 (v4f16 p)
{
return p;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment