diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2016-09-02 09:59:12 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2016-09-07 22:08:24 +0200 |
commit | 975275df258ab3dc751cf173e1641edcd6ab88b4 (patch) | |
tree | a9b2ad53f865c744c4636ee2b74cda17fee8ac66 | |
parent | 516134a1f6f90ac712ac9354ba8131dcac349eb5 (diff) |
gcc/
Backport from trunk r237485.
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.
Change-Id: Ia25c220b930929a3bbaff268733b7718d1104f7c
-rw-r--r-- | gcc/config/aarch64/aarch64-simd.md | 22 |
1 files changed, 8 insertions, 14 deletions
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_<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")] ) |