diff mbox series

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

Message ID 20240624170847.3993095-2-martin@martin.st
State Accepted
Headers show
Series [FFmpeg-devel,GASPP,1/2] Translate .xword and .dword to .quad | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Martin Storsjö June 24, 2024, 5:08 p.m. UTC
---
This might be needed in dav1d in the future.
---
 gas-preprocessor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin Storsjö July 2, 2024, 8:46 p.m. UTC | #1
On Mon, 24 Jun 2024, Martin Storsjö wrote:

> ---
> 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

Will push these two.

// Martin
diff mbox series

Patch

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);
             }