public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2807] aarch64: Expand %<w> correctly according to mode iterator
@ 2021-08-09  9:26 Bin Cheng
  0 siblings, 0 replies; only message in thread
From: Bin Cheng @ 2021-08-09  9:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c

commit r12-2807-ga5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c
Author: Bin Cheng <bin.cheng@linux.alibaba.com>
Date:   Mon Aug 9 17:21:03 2021 +0800

    aarch64: Expand %<w> correctly according to mode iterator
    
    Pattern "*extend<SHORT:mode><GPI:mode>2_aarch64" is duplicated
    from the corresponding zero_extend pattern, however %<w> needs
    to be expanded according to its mode iterator because the smov
    instruction is different to umov.
    
    2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
    
    gcc/
            * config/aarch64/aarch64.md
            (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.

Diff:
---
 gcc/config/aarch64/aarch64.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index eb8ccd4b97b..7085cd4a51d 100644
--- a/gcc/config/aarch64/aarch64.md
+++ b/gcc/config/aarch64/aarch64.md
@@ -1880,7 +1880,7 @@
   "@
    sxt<SHORT:size>\t%<GPI:w>0, %w1
    ldrs<SHORT:size>\t%<GPI:w>0, %1
-   smov\t%w0, %1.<SHORT:size>[0]"
+   smov\t%<GPI:w>0, %1.<SHORT:size>[0]"
   [(set_attr "type" "extend,load_4,neon_to_gp")
    (set_attr "arch" "*,*,fp")]
 )


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-09  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09  9:26 [gcc r12-2807] aarch64: Expand %<w> correctly according to mode iterator Bin Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).