Module: gas-preprocessor Branch: master Commit: 19a91b8afc2b8f15c53fefa1cc7bba23c2059445
Author: Martin Storsjo <[email protected]> Committer: Martin Storsjo <[email protected]> Date: Fri Oct 19 23:48:34 2018 +0300 Don't match whitespace as branch condition codes For cases like "b 1b", this could previously be matched as $cond = " ". This fixes preprocessing with a preprocessor that preserves multiple consecutive spaces, like cl.exe does. --- gas-preprocessor.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index b22ee8a..c42412f 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -879,7 +879,7 @@ sub handle_serialized_line { # Check branch instructions - if ($line =~ /(?:^|\n)\s*(\w+\s*:\s*)?(bl?x?\.?(..)?(\.w)?)\s+(\w+)/) { + if ($line =~ /(?:^|\n)\s*(\w+\s*:\s*)?(bl?x?\.?([^\s]{2})?(\.w)?)\s+(\w+)/) { my $instr = $2; my $cond = $3; my $width = $4; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
