[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:
parent
45484dcfb1
commit
fe65a7edc6
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user