From patchwork Mon Jun 24 17:08:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 50131 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:ae71:0:b0:482:c625:d099 with SMTP id w17csp2148469vqz; Mon, 24 Jun 2024 10:09:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVIiz5yCNYU4roGVlQiZrjgXi9I7Md4ODsrZvTHKwTiPZAwBKNTUxNVkY0Fp1+vQUnnF4O3mF1iYDhn/3Yf3U7fft9xkmko3Qk+9w== X-Google-Smtp-Source: AGHT+IHTP5AkTYddhZzHOdhe5LUDZwCgvu3eSuf0zoBL33I2jXL/Ksi94l1Bx+D2jh4ha3BUgoFc X-Received: by 2002:a17:907:a4c7:b0:a6f:e529:adb5 with SMTP id a640c23a62f3a-a7242cda444mr394118166b.59.1719248941871; Mon, 24 Jun 2024 10:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719248941; cv=none; d=google.com; s=arc-20160816; b=Zv/dMDPiLGYn1Qk016Ct3MVNkjW5x+cih+VXCmPRo9h1cNytJUlhcPw+KLxuDQZ9GF IaDOtyabmQVqLJX+mmgBUQxEGe60NV9ye5yL5gAbZs/kNn4dACkZLeNAmvqmcAB9RTBF mCef9QfQuw9yl2avHm2Q6KaeHd1QiFxgrKHQOXmWFiu4D9xL0QSXUFoNW0sroeB46Z/a D5zBBVRiU8MA8PR8jN136IBUntuUOixdV3j8t/XOhWdzhzsMgQFQKn/WkQO5YgQ6AXc5 GG6FCrQ09Y2AjcBtFZ4fcTuCykrg8ieRuXCg5WTdOdHfBfjClfYC1F2sczQbc9QgjCTv 6DBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=eTlZrh0RJvFMrvYGLONJ0cVn0l4SmaTMFv9qQp7TMXQ=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=uzPHsIAJOLzN0qHwQVLTjgd3XUbOOWAqGDz4+smohuUKwcDLc/FDTkyuMh+xf5OGhn 7wguIehav48ml3Oj4c0Qq8x5/XhoH1hxm5TclmOdQ6Pc9z9C6Y+URy8pVjcZd5an9o08 H4zAHxLnvwk6ZSDNSi5lkOV7PdxHMsFE+Az1ceOu1oCOVclqLCwXFUX+4tp4xqxxEzXT Dm5E2vtANCztDH6IIhYPdJY+7qdy9z0srkHval6lUIwXJhUUKggigyCDepPBWBGwDlNn C02JUK/X8d4JRtnkqbTTqohE4wlOO5e2B5CtIPH4iUWvuUfF3Umno3xMDE/MKwjPSmm7 CKaA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20230601.gappssmtp.com header.s=20230601 header.b=vWxg6g54; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a725fa787fesi58600366b.723.2024.06.24.10.09.01; Mon, 24 Jun 2024 10:09:01 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20230601.gappssmtp.com header.s=20230601 header.b=vWxg6g54; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2003D68D406; Mon, 24 Jun 2024 20:08:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B85C468D406 for ; Mon, 24 Jun 2024 20:08:49 +0300 (EEST) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-52ce655ff5bso1247140e87.3 for ; Mon, 24 Jun 2024 10:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1719248929; x=1719853729; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=BDKaGixEb8xNeodOiMi+WF92FbAIzh2eR3zxxAKtoyU=; b=vWxg6g54j+6Ov7CrNPpLxHjT0KkHrdltQIAm0ueK+f2sGRETU86RYjUY84lxAGWhN+ ogpoBaMKrgZ6UFCkDtZjPIU48ZLi34AnJ1Tb89AvmlbUeigHdZGqSXT1Yov8PX/FiEJ4 9wzS5hNrjccoO4vEk3zAqD89jv6cTqv9yGTlmx1lyrfsvADezkIrhRiAnMwmFnlSvgUr Z9EDLRkNoZ06gvaLUa4RXIRJdel34lNndr+M2hpgach/8YaKhQeuMqf1bdTy/h75phJf U/5tTzOK/zf2ffrrBZTTNx1sjDSa7SUgwtOE8+RTjzSR8q05MsCSu682sqiWjzHTYE3p lYlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719248929; x=1719853729; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BDKaGixEb8xNeodOiMi+WF92FbAIzh2eR3zxxAKtoyU=; b=WDwvnwv8BzLRmy6NYbUREnCmDzxnoE645RYQpUrUolDWgeGMUDJDztfaLh1i5N5QQv kNJtP3Ux/mcuTpPHbvEz1X0jhe26IaeC1P52wzVNvjzveAWGZxLOueBDXeim00YqieIx AUwmBYIEojzY5di3xoC29YjZ/Cdhka5SizbWeEXpsVwBz6nXNgGdkxcjhxfqs70GYcEq bDVebfpvDAbKjJrhxKBlRPeNambfdLDP4iE7SZ7N8AaNPnDVF4gm2MD8CkJN8RztZNGb r/Wn4BPt0KsUUYM12SZgFxD0ao6tM+ixvNSMZFBEr2vunOk7Q7wAim/xa/+xZhUgLdkW zL6Q== X-Gm-Message-State: AOJu0YzfYCDJk9XpP1VjSAJtoNqqWqAwIKO3tpn1u48IKrSZEparRwME wdItU69UR89hGV+ilHfcF1oNi9uKP0oNUX4ErMmzr940yZGt9atblMtKzcj0SgaNyr31pthftR/ Ltw== X-Received: by 2002:a05:6512:b90:b0:52c:9880:3e9 with SMTP id 2adb3069b0e04-52ce0646850mr4787504e87.59.1719248928542; Mon, 24 Jun 2024 10:08:48 -0700 (PDT) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52cd63b4c13sm1026492e87.13.2024.06.24.10.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 10:08:48 -0700 (PDT) From: =?utf-8?q?Martin_Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 24 Jun 2024 20:08:46 +0300 Message-Id: <20240624170847.3993095-1-martin@martin.st> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [GASPP PATCH 1/2] Translate .xword and .dword to .quad X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: zj20oftlHOp3 --- gas-preprocessor.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index b0c343e..20b927f 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -1169,6 +1169,8 @@ sub handle_serialized_line { $line =~ s/\.syntax/$comm$&/x if $as_type =~ /armasm/; $line =~ s/\.hword/.short/x; + $line =~ s/\.xword/.quad/x; + $line =~ s/\.dword/.quad/x; if ($as_type =~ /^apple-/) { # the syntax for these is a little different From patchwork Mon Jun 24 17:08:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 50132 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:ae71:0:b0:482:c625:d099 with SMTP id w17csp2148827vqz; Mon, 24 Jun 2024 10:09:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXsAWiVtwhyrOFvUutbONjFqeudJbrbmUbrS3W4S1sFw9/FljQRfPG3DCL9zfowGtH6pU/e7ed9D03xAemDXNf951Sx/tYUsYjDfg== X-Google-Smtp-Source: AGHT+IH7auGUoLIQz5vpMkVBRe3ABEn5tM0tkpt4dOpoezGOzS4mHGBDhjenHyXDl0W1HrL7vjEV X-Received: by 2002:ac2:5ed0:0:b0:52c:dc20:64a with SMTP id 2adb3069b0e04-52ce1835910mr3747588e87.37.1719248975866; Mon, 24 Jun 2024 10:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719248975; cv=none; d=google.com; s=arc-20160816; b=ULuhBZu8rTBUMQU+NsUme/rotMfANRnxOhqdo/SwnxTdacYTTksYrTr3MGYk0bxvJY VVkfpnLQiJ4S6nN8bcIjP8EnQ8GKrX4donMEN8T7OoH+U63TnCy1++Xy0HMVfuAFJmQR +LyK+Vn6qqbCY8BusqbVxI4dpCBhq60sBsvzl0zPONBr+IqWuzr/ln/zi7JP5/3Hyo+W LPiXa6TOJYMRJocQ/A3bG0l36xnRatCP3bOcMuxD6quBvAIXdXM15Jt31NYs9VXLCzHJ A9ZM0Ml0aySJDDxAQzRi9US8bMz0yXiE66ziP2znMSyqwjz8u7dFMTGAcOB2NIhs5VPQ 1JRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=qJm4H1QhMuBk+feXgR+sJdKxTdnsCd/AcxtZVsjrmMc=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=qgH9+aVJ8BMQS1GyKrgJpw7jWOXLxyGWxzFHlEpPXHyIzaV41WvoTaXa74M4JHh/1Z QhLA86TGoTf0gfrYxr5xqcWN4H949C975BYX91Hec7vuZDbJw+G2O3wOlEcX3zWiF5Pu 7YaE0vIVk7vAxTlX9EKnPLbGR1P9NS0FoX+yU0oF71er/1spkQ7A21FKQQJ0Zx79rQ2J KBorVM67QkB5HcweD8+x/4917kFrDIVcPYzsLai85DaMDem4dBZAROKAxxtLSuY2Dpq1 /uZTRGHRcKW4R+BEXgBow7sij5upT+CHsViCWv7yrU9f4gFgqfTI/1DTCeV5+pMGltuS pHlw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20230601.gappssmtp.com header.s=20230601 header.b="2S/V0Gba"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a7254f9ed1fsi117821666b.319.2024.06.24.10.09.13; Mon, 24 Jun 2024 10:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20230601.gappssmtp.com header.s=20230601 header.b="2S/V0Gba"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6FB6D68D51E; Mon, 24 Jun 2024 20:08:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1527268D406 for ; Mon, 24 Jun 2024 20:08:50 +0300 (EEST) Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2eaae2a6dc1so74894711fa.0 for ; Mon, 24 Jun 2024 10:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1719248929; x=1719853729; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LUcXsysuxf7W6UYD8ZvmYV0GraDhI/VdMevG/Q6/It0=; b=2S/V0GbaSC4DcFmqKlVAW+grcxbGhJcC4p33MqptSxfiOPXSn1yonyWBa1TsI9uAK0 FEUfx1p/r/x/Zagrwyt1/vcthK6yTNtBYoTKw7XZpw8BC9+J/N1K4hw7h8BXiCed+RU0 TbbhYZfl5v1Fz8+W3X6jw9A7VzplkshAmriThSw7BKUe0nDyLxirLU0j39ePufqG19Ee 4oU3aLABIgEtq4oMURU8LKv2Gx+FKlyAsMhNBJ8Q0SEDH7NySVHhNcN7rJ6yV6J5s0kl Zzja8NQL6P8N4eqowKpzKxkXTJZ+YiljWbkY9TQVejnEfklH4vkAFktNaWHwfMbOnV+U ex0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719248929; x=1719853729; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LUcXsysuxf7W6UYD8ZvmYV0GraDhI/VdMevG/Q6/It0=; b=rnQLMuPM9jpnRrsV3UK7odCtd3CqI/sgj4DunCyfi4K65Ue+PFDonmOJF/1MFT4w8N u4B2YyhKJY3Zdc0iV8r77EhZ4v7rYHxN8nlQD42m10y/bT6ZVGFVJiwB4jz0kfsGnHuU Pfc0IPUBJMsqbIUeID7yjWiHu3428UsQxjaFOdee7mIyfolN/EIAaHDcw5AY0rSAIVTe QnqrtcMh0QKGN6mrfbOjts0g65cfE8c7inrQg0S8OlbyNTR/+WRtkzMZCRB715Li5RJ8 Z8V5FaXcpzmdKPifseLKNG/5/BxJYIKYu+0hOucqUzcZ8j6tHhJ/mtsGNe9IQtycJrzn 6TeA== X-Gm-Message-State: AOJu0YyPmU/18YuKloyt2gm4JiWzH8HRehQApwE+KYSECI9r0frN2hCJ TZg8RwtyxohDIDY4vcGyL/7SHUukea7qMiOwsk6zRQZ50BSE/fM4Rf6H8KhL31vc2fFlgoXK5o5 qzg== X-Received: by 2002:a19:5209:0:b0:52c:dfa0:10c9 with SMTP id 2adb3069b0e04-52ce1832ac8mr3843870e87.24.1719248929166; Mon, 24 Jun 2024 10:08:49 -0700 (PDT) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52cd64334f7sm1016344e87.226.2024.06.24.10.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 10:08:48 -0700 (PDT) From: =?utf-8?q?Martin_Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 24 Jun 2024 20:08:47 +0300 Message-Id: <20240624170847.3993095-2-martin@martin.st> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240624170847.3993095-1-martin@martin.st> References: <20240624170847.3993095-1-martin@martin.st> MIME-Version: 1.0 Subject: [FFmpeg-devel] [GASPP PATCH 2/2] Handle local labels in expressions with .xword/.dword/.quad X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: PGWpY+DaGhbr --- 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); }