From 975275df258ab3dc751cf173e1641edcd6ab88b4 Mon Sep 17 00:00:00 2001 From: Yvan Roux Date: Fri, 2 Sep 2016 09:59:12 +0200 Subject: [PATCH] gcc/ Backport from trunk r237485. 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. Change-Id: Ia25c220b930929a3bbaff268733b7718d1104f7c --- gcc/config/aarch64/aarch64-simd.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index fd4b62e..3f8289c 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.7.4