mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-28 16:01:00 +08:00
[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:
parent
e8a4ed3b9d
commit
b7c43e2429
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user