[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
This commit is contained in:
Kyrylo Tkachov 2015-04-07 10:24:19 +00:00 committed by Kyrylo Tkachov
parent e8a4ed3b9d
commit b7c43e2429
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,9 @@
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>

View File

@ -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);
}