diff mbox series

[FFmpeg-devel,GASPP,1/2] Recognize aarch64 register ranges with .16b suffixes too

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

Checks

Context Check Description
andriy/configure warning Failed to apply patch
andriy/configure warning Failed to apply patch

Commit Message

Martin Storsjö Jan. 16, 2021, 11:15 p.m. UTC
Match e.g. "ld1 {v16.16b-v19.16b}".

Previously this regex only matched lane specifiers with a single
digit, e.g. "ld1 {v16.8h-v19.8h}".
---
 gas-preprocessor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index c4b1c1d..4d78dac 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 =~ /(?:ld|st)\d\s+(\{\s*v(\d+)\.(\d+[bhsdBHSD])\s*-\s*v(\d+)\.(\d+[bhsdBHSD])\s*\})/) {
                 my $regspec = $1;
                 my $reg1 = $2;
                 my $layout1 = $3;