diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2015-04-07 10:24:19 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2015-04-07 10:24:19 +0000 |
commit | b7c43e2429b80573b3cb028a4569e2d82228a439 (patch) | |
tree | 388b809484ba70352e492bbbe7d442cf51d53b83 /gcc | |
parent | e8a4ed3b9d834a000f0026b13cc412802aaaf368 (diff) | |
download | gcc-b7c43e2429b80573b3cb028a4569e2d82228a439.zip gcc-b7c43e2429b80573b3cb028a4569e2d82228a439.tar.gz gcc-b7c43e2429b80573b3cb028a4569e2d82228a439.tar.bz2 |
[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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f3d4a3..f65dd4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 3b2b9a6..8fd1388 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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); } |