[FFmpeg-devel] [GASPP PATCH 2/2] Handle local labels in expressions with .xword/.dword/.quad

Martin Storsjö martin at martin.st
Mon Jun 24 20:08:47 EEST 2024


---
This might be needed in dav1d in the future.
---
 gas-preprocessor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 20b927f..19b0131 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -958,7 +958,7 @@ sub handle_serialized_line {
                 $xreg =~ s/w/x/;
                 $line =~ s/\b$reg\b/$xreg/;
             }
-        } elsif ($line =~ /^\s*.h?word.*\b\d+[bf]\b/) {
+        } elsif ($line =~ /^\s*.([hxd]?word|quad).*\b\d+[bf]\b/) {
             while ($line =~ /\b(\d+)([bf])\b/g) {
                 $line = handle_local_label($line, $1, $2);
             }
-- 
2.34.1



More information about the ffmpeg-devel mailing list