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

Martin Storsjö martin at martin.st
Fri Jan 22 18:08:53 EET 2021


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


More information about the ffmpeg-devel mailing list