aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@linux.alibaba.com>2021-08-09 17:21:03 +0800
committerBin Cheng <bin.cheng@linux.alibaba.com>2021-08-09 17:21:03 +0800
commita5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c (patch)
treea1b166956a7d9d41d4f9f5bec8c994b0acfe62d4 /gcc
parenta5e3c1e2c8dafcd2f6e4eeb2b2fa38fd40c5eda3 (diff)
downloadgcc-a5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c.zip
gcc-a5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c.tar.gz
gcc-a5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/aarch64/aarch64.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index eb8ccd4..7085cd4 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")]
)