[AArch64][obvious] Clean up parentheses and use GET_MODE_UNIT_BITSIZE in a couple of patterns

* config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
	up parentheses.  Use GET_MODE_UNIT_BITSIZE.
	(aarch64_<sur>shll2_n<mode>): Likewise.

From-SVN: r237485
This commit is contained in:
Kyrylo Tkachov 2016-06-15 16:07:34 +00:00 committed by Kyrylo Tkachov
parent 209d1e2d94
commit 10c619de35
2 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,9 @@
2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
up parentheses. Use GET_MODE_UNIT_BITSIZE.
(aarch64_<sur>shll2_n<mode>): Likewise.
2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
PR middle-end/71529

View File

@ -3950,15 +3950,12 @@
"aarch64_simd_shift_imm_bitsize_<ve_mode>" "i")]
VSHLL))]
"TARGET_SIMD"
"*
int bit_width = GET_MODE_UNIT_SIZE (<MODE>mode) * BITS_PER_UNIT;
if (INTVAL (operands[2]) == bit_width)
{
return \"shll\\t%0.<Vwtype>, %1.<Vtype>, %2\";
if (INTVAL (operands[2]) == GET_MODE_UNIT_BITSIZE (<MODE>mode))
return "shll\\t%0.<Vwtype>, %1.<Vtype>, %2";
else
return "<sur>shll\\t%0.<Vwtype>, %1.<Vtype>, %2";
}
else {
return \"<sur>shll\\t%0.<Vwtype>, %1.<Vtype>, %2\";
}"
[(set_attr "type" "neon_shift_imm_long")]
)
@ -3970,15 +3967,12 @@
(match_operand:SI 2 "immediate_operand" "i")]
VSHLL))]
"TARGET_SIMD"
"*
int bit_width = GET_MODE_UNIT_SIZE (<MODE>mode) * BITS_PER_UNIT;
if (INTVAL (operands[2]) == bit_width)
{
return \"shll2\\t%0.<Vwtype>, %1.<Vtype>, %2\";
if (INTVAL (operands[2]) == GET_MODE_UNIT_BITSIZE (<MODE>mode))
return "shll2\\t%0.<Vwtype>, %1.<Vtype>, %2";
else
return "<sur>shll2\\t%0.<Vwtype>, %1.<Vtype>, %2";
}
else {
return \"<sur>shll2\\t%0.<Vwtype>, %1.<Vtype>, %2\";
}"
[(set_attr "type" "neon_shift_imm_long")]
)