diff mbox series

[FFmpeg-devel,GASPP,2/2] Match aarch64 register lists with tbl/tbx too

Message ID 20210116231540.10974-2-martin@martin.st
State New
Headers show
Series [FFmpeg-devel,GASPP,1/2] Recognize aarch64 register ranges with .16b suffixes too | expand

Checks

Context Check Description
andriy/configure warning Failed to apply patch

Commit Message

Martin Storsjö Jan. 16, 2021, 11:15 p.m. UTC
Remove the restriction on matching on the same line as ld1/st1 and
similar ones; the pattern for the register list itself should be
strict enough to avoid false matches.
---
 gas-preprocessor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin Storsjö Jan. 22, 2021, 4:08 p.m. UTC | #1
On Sun, 17 Jan 2021, Martin Storsjö wrote:

> Remove the restriction on matching on the same line as ld1/st1 and
> similar ones; the pattern for the register list itself should be
> strict enough to avoid false matches.
> ---
> gas-preprocessor.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
> index 4d78dac..06e376f 100755
> --- a/gas-preprocessor.pl
> +++ b/gas-preprocessor.pl
> @@ -1087,7 +1087,7 @@ sub handle_serialized_line {
>             }
>
>             # Convert "ld1 {v0.4h-v3.4h}" into "ld1 {v0.4h,v1.4h,v2.4h,v3.4h}"
> -            if ($line =~ /(?:ld|st)\d\s+(\{\s*v(\d+)\.(\d+[bhsdBHSD])\s*-\s*v(\d+)\.(\d+[bhsdBHSD])\s*\})/) {
> +            if ($line =~ /(\{\s*v(\d+)\.(\d+[bhsdBHSD])\s*-\s*v(\d+)\.(\d+[bhsdBHSD])\s*\})/) {
>                 my $regspec = $1;
>                 my $reg1 = $2;
>                 my $layout1 = $3;
> -- 
> 2.17.1

If there's no objections, I'll push these soon.

// Martin
diff mbox series

Patch

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 4d78dac..06e376f 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -1087,7 +1087,7 @@  sub handle_serialized_line {
             }
 
             # Convert "ld1 {v0.4h-v3.4h}" into "ld1 {v0.4h,v1.4h,v2.4h,v3.4h}"
-            if ($line =~ /(?:ld|st)\d\s+(\{\s*v(\d+)\.(\d+[bhsdBHSD])\s*-\s*v(\d+)\.(\d+[bhsdBHSD])\s*\})/) {
+            if ($line =~ /(\{\s*v(\d+)\.(\d+[bhsdBHSD])\s*-\s*v(\d+)\.(\d+[bhsdBHSD])\s*\})/) {
                 my $regspec = $1;
                 my $reg1 = $2;
                 my $layout1 = $3;