From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 41BB24D1CA for ; Wed, 12 Nov 2025 21:21:10 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'FFeRk9ZmT9chQ3lI2YnMvpKxFl2B2b8LxMw28+Y1XSE=', expected b'UIXeFzeDFsS6qT7p7EDLlFz9FNIfKno1QK4IcgP6CLE=')) header.d=martin-st.20230601.gappssmtp.com header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1762982463; h=to : date : message-id : mime-version : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=K/xHcRbqzhFST/tkspfPp40N3POzX7QB37NjPYxuTwg=; b=NLOE+7M8H+F2KeY9OjTOB5sJqazKwHUs7KWXRD3QFTG+8ryvFK8BFu6236/8kyqdD7bPT DD0HLiuIf3a9hM/6MR+XYHlLeX9UdZKY8fJ5FAxC9Nw1/EqIY430BhXKK4/fufQhDfV4B8L bZIpZhK7/bNW6C8fsbBM+RTFsg5ikbbWLPDgNUn+/5R7IBOoNvOlt3wTiw8I6UMS7OiJReS gX2W12ReBDqWexOTCeZNnr5/IjRKA0Ap3ykauXBKQCv8OUJQoKURnr8vSRaFQ1PTOVbzoMh yPkeYwbmjPAJozjuRtRdbfxEPp3ZP49r+YbdNxQ+Lr8LctBXFjHAouw4diPA== Received: from [172.19.0.2] (unknown [172.19.0.2]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 6895968FDDD; Wed, 12 Nov 2025 23:21:03 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1762982447; b=m4Mwp6cIwTE4i0vFCfQ2s/2AUW7BLF99F42gFuLoLej9klWSMYz7CD3UOe++cG0QiSpE1 TyPH3Q6+6SsrM11mwHCFUMNXrXBx3pLi1KL5aMFjxYQvQ7lt8RRq09GpmbSEoqUbN0pzNXQ h7vs7JAtkpPfg/hhoRpNofocsQ31cpZhJ2dh+3BUpKGhacfHkWhOa30azFjBbvNl0w4xEnL +lHW2POPNmIyPLtwqKtMax4cmO6O+Pn5Yhd3Y81KpJE3Vq4aq8t07W0nQftAerwbh7vH9Sb hqegrIUGZ3RnEMMYzEnIgM2EqLY+gPWK9RLGRJFxAMzzndlul84JdrtOf0JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1762982447; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=FFeRk9ZmT9chQ3lI2YnMvpKxFl2B2b8LxMw28+Y1XSE=; b=boexTmZ5PE/vqADN3kD2BQV3/rbF3dTDJ4zK3Vt7waciqTtOMcsAUtAaOM3M2lqellZx0 kB4fd7/XxJsSwP1btBL8fTywd3y4Zn9yCzpzybCG7X9eak6uI6YEGrKe173101w4KLvvWHM RhQQjcC7xT1q+FCnaDcnsr2DqlubUa3IJ3XTkmA3XBKAwhqejeQuaJznTXWp251a0mXXrvZ y8blNtz2thYKd3O6O5ca8H7a5vNWm4glYoGuTxze1rH8QFbAJf8zHAmrCiNm95D774EZYIy OJe3JbIvHq5sPWIsdT6oG0DHJxLFIl8dUC4VVlW4IZadwsRnKTqPSR9SRN5Q== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=martin-st.20230601.gappssmtp.com; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=martin-st.20230601.gappssmtp.com; arc=none (Message is not ARC signed); dmarc=none Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id E1B6568FD0A for ; Wed, 12 Nov 2025 23:20:33 +0200 (EET) Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-37a56a475e8so994541fa.3 for ; Wed, 12 Nov 2025 13:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1762982433; x=1763587233; 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=UIXeFzeDFsS6qT7p7EDLlFz9FNIfKno1QK4IcgP6CLE=; b=V9Rctpp+Qa7p13T/acOE14oimeQXI4ytSH4EF88cjBsdJX6aHsL3teOXQwxnbrvUP0 uMjcUWLRKsWoOHV2NrAQINlgvYMB9POhi9iXwbvC/nv+CZ6Cx26/B037RwVsOzgRqPft fABtUEu5FA01VqlKCWKQCqRZeXAQt0/GYczyV0bkIbAo9LWOHOboRlhr8g11OLkxCBSL PwUx22RC2lYIHo3LDOcRsFacHAKVV/o3KeIUftyBvPlmmQhZirtMdb/AwgWcpQPAsC9r nKB04c5a0FHMCQ0VWHsRHp3/FHLeBYVLLtIoH6j5JMjdF+o4AkuYTTgHvj50WY+/6ji0 Zfew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762982433; x=1763587233; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UIXeFzeDFsS6qT7p7EDLlFz9FNIfKno1QK4IcgP6CLE=; b=oIjlGdL/udIruTCwOELZ8Th9E5nslJ0gFjMXzSc5opwuI9HceXqdq5jpW8GYUvrKMO pkwh484GLd39nOMKqC1fMGWd8GGqIzv8NudcBfyv0ypjJUCYza1BDaEBNUSnt3YJN45x /4/AIu3FCqXycqDtjf6z8UxdPDJDHHB2twekICGxLhUfbwbqMwadC+ZHHRkWqdyM29mn 6Gxk70Ln9kj3Gle6c+J7lRrzj4WgAcE7uG1FKwpdvJFm+uyvJrbWyiuvjf04mteoyRVF UfN7zHWA7y7NYgGXncfF+ceKPgSHxb13ISKR03KuVrjKOPKJL4iVLLDO+QoUqsNclYX2 /1Rg== X-Gm-Message-State: AOJu0YyRuj4zGUPMbLGB+iwMPG1Te/9fFI2TdTD8M2ISXrUrgN9EXrJN T6ZNcKMxq/EAEczgnVFN2yAu68TRT/cOQ9vtT/9PaHmcQgEE1VArdiH4K+/gPvaM/ZeGEEMiGLu coWDdWOkg X-Gm-Gg: ASbGncuSDHSLmZ65r44Qf82a+Jw7R2OOECK5HYOrowSuZp+/uRzXD8+u4lwB4KTH5/f VuDssV6/qRjV+FNriqnzxoYSGz7pVOpjOh/xpiSAP+nJ1YYWJ8cof+PyrIIInNxVdEQ4p18lWWr ptN1KI7r/EkgfSp22nXmGIekK52/XI652dTRwiPsfawH6+dBaaydvVM0TN/lmh3SoQDyf1gVWk4 bvd94jbmrJixo8krG9njoN/Ez3aSVOcLxOUHOPs4m9nREAemi6wz8yDCj3+IDIByyS1lOx7bul1 OB60wVECbNFXloaJVSatQt2vbWuyjHLV9MyYSDCGB3WXCJeGQgodPKcxmJqdS84ejbp14YMwWvl 0Bgl+zGRwAjxKsJnvOZlbX5bdhbXS6NSChE7GWDUbZsF/mwhqGIdnMNBMzTTXIekM1sY0oAO+Xz eG89CS6kBhZTXjk6zjo4zh5bMM/P3Ixz4= X-Google-Smtp-Source: AGHT+IEIWr93PdYQPrQuiyxwZ7M93g3/pAQEPziQySo8IcjG2B51xrayO8okYTcCIcFVEeb42pnkPQ== X-Received: by 2002:a05:6512:1152:b0:594:5685:94ce with SMTP id 2adb3069b0e04-59576e2daebmr1515289e87.48.1762982432074; Wed, 12 Nov 2025 13:20:32 -0800 (PST) Received: from localhost (dsl-tkubng21-50de30-198.dhcp.inet.fi. [80.222.48.198]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5957e80e769sm215723e87.102.2025.11.12.13.20.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Nov 2025 13:20:28 -0800 (PST) To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Nov 2025 23:20:23 +0200 Message-ID: <20251112212026.4045172-1-martin@martin.st> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: RLM7KP3USB3C2PIWXDSLQKRQN4GLA3HC X-Message-ID-Hash: RLM7KP3USB3C2PIWXDSLQKRQN4GLA3HC X-MailFrom: SRS0=S7Pb=5U=martin.st=martin@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [GASPP PATCH] Translate .inst into DCD, the same as for .int or .word List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: =?utf-8?q?Martin_Storsj=C3=B6_via_ffmpeg-devel?= Cc: =?UTF-8?q?Martin=20Storsj=C3=B6?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: For ELF targets, the assembler keeps track of which words are actual instructions, and which are data - and the disassembler shows them differently depending on this. For other object file formats, there's no difference. Thus, for armasm for targeting COFF, we can treat this just like any regular integer. Produce either a 16 or 32 bit value depending on whether we are assembling thumb or arm. (In the case of aarch64, it is always 32 bit.) --- Will push after a day or two. --- gas-preprocessor.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 85ccf24..ec1a6ec 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -1194,6 +1194,13 @@ sub handle_serialized_line { if ($as_type eq "armasm") { $line =~ s/\.global/EXPORT/x; $line =~ s/\.extern/IMPORT/x; + if ($thumb) { + # Translate .inst into a 16 bit thumb instruction word + $line =~ s/\.inst/dcw/x; + } else { + # Translate .inst into a full 32 bit word + $line =~ s/\.inst/dcd/x; + } $line =~ s/\.int/dcd/x; $line =~ s/\.long/dcd/x; $line =~ s/\.float/dcfs/x; -- 2.43.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org