From patchwork Mon Mar 24 12:37:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [01/20] aarch64: do not add the optional ', lsl #0' for byte vectors X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 48838 Message-Id: <1395664691-60544-1-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Mon, 24 Mar 2014 14:37:52 +0200 From: Martin Storsjo List-Id: libav development From: Janne Grunau Although it is allowed it does not make much sense since the immediate is already 8bits. --- gas-preprocessor.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 914c41c..14a6309 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -757,8 +757,8 @@ sub handle_serialized_line { if ($line =~ /^\s*mov\s+(v\d[\.{}\[\]\w]+),\s*(v\d[\.{}\[\]\w]+)\b\s*$/) { $line = " orr $1, $2, $2\n"; } - # movi 8, 16, 32 bit shifted variant, shift is optional - if ($line =~ /^\s*movi\s+(v[0-3]?\d\.(?:2|4|8|16)[bhsBHS])\s*,\s*(#\w+)\b\s*$/) { + # movi 16, 32 bit shifted variant, shift is optional + if ($line =~ /^\s*movi\s+(v[0-3]?\d\.(?:2|4|8)[hsHS])\s*,\s*(#\w+)\b\s*$/) { $line = " movi $1, $2, lsl #0\n"; } # Xcode 5 misses the alias uxtl replace it with the more general ushll