aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/aarch64/aarch64-simd.md
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2016-06-15 16:07:34 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2016-06-15 16:07:34 +0000
commit10c619de356f72216949eeeb9c9e94d9c02e628f (patch)
treee98e644523422d4fd3cedcc4a3efc84d26107350 /gcc/config/aarch64/aarch64-simd.md
parent209d1e2d94c11f8407b53bc122115add9e050ecd (diff)
downloadgcc-10c619de356f72216949eeeb9c9e94d9c02e628f.zip
gcc-10c619de356f72216949eeeb9c9e94d9c02e628f.tar.gz
gcc-10c619de356f72216949eeeb9c9e94d9c02e628f.tar.bz2
[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
Diffstat (limited to 'gcc/config/aarch64/aarch64-simd.md')
-rw-r--r--gcc/config/aarch64/aarch64-simd.md22
1 files 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_<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")]
)