From 10c619de356f72216949eeeb9c9e94d9c02e628f Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Wed, 15 Jun 2016 16:07:34 +0000 Subject: [PATCH] [AArch64][obvious] Clean up parentheses and use GET_MODE_UNIT_BITSIZE in a couple of patterns * config/aarch64/aarch64-simd.md (aarch64_shll_n): Clean up parentheses. Use GET_MODE_UNIT_BITSIZE. (aarch64_shll2_n): Likewise. From-SVN: r237485 --- gcc/ChangeLog | 6 ++++++ gcc/config/aarch64/aarch64-simd.md | 22 ++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2aa82f5a47a..8cdecc8be38 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-06-15 Kyrylo Tkachov + + * config/aarch64/aarch64-simd.md (aarch64_shll_n): Clean + up parentheses. Use GET_MODE_UNIT_BITSIZE. + (aarch64_shll2_n): Likewise. + 2016-06-15 Ilya Enkovich PR middle-end/71529 diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index fd4b62e8886..3f8289cf7dc 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -3950,15 +3950,12 @@ "aarch64_simd_shift_imm_bitsize_" "i")] VSHLL))] "TARGET_SIMD" - "* - int bit_width = GET_MODE_UNIT_SIZE (mode) * BITS_PER_UNIT; - if (INTVAL (operands[2]) == bit_width) { - return \"shll\\t%0., %1., %2\"; + if (INTVAL (operands[2]) == GET_MODE_UNIT_BITSIZE (mode)) + return "shll\\t%0., %1., %2"; + else + return "shll\\t%0., %1., %2"; } - else { - return \"shll\\t%0., %1., %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) * BITS_PER_UNIT; - if (INTVAL (operands[2]) == bit_width) { - return \"shll2\\t%0., %1., %2\"; + if (INTVAL (operands[2]) == GET_MODE_UNIT_BITSIZE (mode)) + return "shll2\\t%0., %1., %2"; + else + return "shll2\\t%0., %1., %2"; } - else { - return \"shll2\\t%0., %1., %2\"; - }" [(set_attr "type" "neon_shift_imm_long")] ) -- 2.30.2