[ARM] Wrap long literals in HOST_WIDE_INT_C in aarch-common.c

* config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
       Use HOST_WIDE_INT_C for mask literal.
       (aarch_rev16_shleft_mask_imm_p): Likewise.

From-SVN: r209797
This commit is contained in:
Kyrylo Tkachov 2014-04-25 11:09:03 +00:00 committed by Kyrylo Tkachov
parent 45484dcfb1
commit fe65a7edc6
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
Use HOST_WIDE_INT_C for mask literal.
(aarch_rev16_shleft_mask_imm_p): Likewise.
2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
PR target/60941

View File

@ -195,14 +195,18 @@ bool
aarch_rev16_shright_mask_imm_p (rtx val, enum machine_mode mode)
{
return CONST_INT_P (val)
&& INTVAL (val) == trunc_int_for_mode (0xff00ff00ff00ff, mode);
&& INTVAL (val)
== trunc_int_for_mode (HOST_WIDE_INT_C (0xff00ff00ff00ff),
mode);
}
bool
aarch_rev16_shleft_mask_imm_p (rtx val, enum machine_mode mode)
{
return CONST_INT_P (val)
&& INTVAL (val) == trunc_int_for_mode (0xff00ff00ff00ff00, mode);
&& INTVAL (val)
== trunc_int_for_mode (HOST_WIDE_INT_C (0xff00ff00ff00ff00),
mode);
}