Commit b7c43e24 by Kyrylo Tkachov Committed by Kyrylo Tkachov

[ARM] PR 65489: Accept VSTRUCT constants in arm_legitimate_constant_p

	PR target/65489
	* config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
	on constants for NEON VSTRUCT modes.

From-SVN: r221892
parent e8a4ed3b
2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65489
* config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
on constants for NEON VSTRUCT modes.
2015-04-07 Jakub Jelinek <jakub@redhat.com>
Iain Sandoe <iain@codesourcery.com>
......
......@@ -8193,14 +8193,8 @@ arm_tls_referenced_p (rtx x)
When generating pic allow anything. */
static bool
arm_legitimate_constant_p_1 (machine_mode mode, rtx x)
arm_legitimate_constant_p_1 (machine_mode, rtx x)
{
/* At present, we have no support for Neon structure constants, so forbid
them here. It might be possible to handle simple cases like 0 and -1
in future. */
if (TARGET_NEON && VALID_NEON_STRUCT_MODE (mode))
return false;
return flag_pic || !label_mentioned_p (x);
}
......
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