| Message ID | 20260330224203.3110788-1-vineet.gupta@linux.dev |
|---|---|
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 45FA24B92090 for <patchwork@sourceware.org>; Mon, 30 Mar 2026 22:46:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45FA24B92090 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=X2hDn3uf X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) by sourceware.org (Postfix) with ESMTPS id 1C5914B920B7 for <binutils@sourceware.org>; Mon, 30 Mar 2026 22:42:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C5914B920B7 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.dev ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1C5914B920B7 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=95.215.58.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774910548; cv=none; b=T2Ry8eU47Wdpg9SQPQYb6mdNIouQwdap7zUwyi/WdQwskIF5eH8g3Y9GgrjdogNtm8prWEvYJrp/oyXBtHiEuvT+YYUDSBnYfUlUeOfaJExSz3oNLrO2RSkX4Y+FaA0OkHxDwnjKXHzYeNEM9mbnrjkLaRx8BTJFrKj+Hb6wUio= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774910548; c=relaxed/simple; bh=kmcqYqLSg7iyKwqVariWJFC/EJv58jCGTbxfBOf7GVo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nF5bwNNWGema/Wb7hJO/j4W4w/X5OXBg+XYmcGZiptqq1PUZ4YESqwFvkpdfhlqZYx87Ab0/UzZMUSb+KAdubPM8hz9fDtUxYbnrFKNFM0Zdfd0RsZ5FWg4chZpWqrfe8AJXmeqY7CS9SGO5BzLRre8rHKFJHVZ8ideH6C2s9SA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C5914B920B7 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774910536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3JB4Qh3bKqq8IzGo1X6TYPqoosZJeNkrlWVPDmU+XzY=; b=X2hDn3ufbheGS8G0DoUT6/vQXGtxVnvIaidKsfmaB+5ijH+eVcoXubFZLSM3zz6bE6nUzi 6d4f7xP+lnnUyhCU6CDVMMXoFSc7hGJPpUcSdbCS2k0wy2BMk01bz8D1lp/3/54aAn7Wro h80IYTJNJ+MB7SJFiy53ewfvPmQoN1M= From: Vineet Gupta <vineet.gupta@linux.dev> To: bpf@gcc.gnu.org Cc: binutils@sourceware.org, jose.marchesi@oracle.com, ast@kernel.org, Eduard Zingerman <eddyz87@gmail.com>, Yonghong Song <yonghong.song@linux.dev>, Vineet Gupta <vineet.gupta@linux.dev> Subject: [PATCH 0/3] bpf gas updates Date: Mon, 30 Mar 2026 15:42:00 -0700 Message-ID: <20260330224203.3110788-1-vineet.gupta@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_PASS, TXREP, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series | bpf gas updates | |
Message
Vineet Gupta
March 30, 2026, 10:42 p.m. UTC
Hi, These patches came out of some gcc work. That is now dropped but these seem something that could be useful still. Thx, -Vineet Vineet Gupta (3): bpf: print failing insn for unexpected register PR 34029: bpf: allow w regs in store insns similar to llvm PR 34029: bpf: allow w regs in load insns similar to llvm gas/config/tc-bpf.c | 6 ++++-- gas/testsuite/gas/bpf/mem-be-pseudoc.d | 8 +++++++- gas/testsuite/gas/bpf/mem-pseudoc.d | 8 +++++++- gas/testsuite/gas/bpf/mem-pseudoc.s | 6 ++++++ gas/testsuite/gas/bpf/regs-for-symbols-pseudoc.l | 14 +++++++------- include/opcode/bpf.h | 2 ++ opcodes/bpf-opc.c | 12 ++++++++++++ 7 files changed, 45 insertions(+), 11 deletions(-)
Comments
Some caveats I should have covered already. On 3/30/26 3:42 PM, Vineet Gupta wrote: > Hi, > These patches came out of some gcc work. That is now dropped but these > seem something that could be useful still. This is specifically for [1] [1] https://gcc.gnu.org/pipermail/bpf/2026-March/000077.html And for the patchset (all 3 patches), while the actual code changes were done by human (me), the testsuite fixes were actually generated by Claude. But I take full responsibility for anything that's amiss and will be willing to fix that. Cheers, -Vineet > > Thx, > -Vineet > > Vineet Gupta (3): > bpf: print failing insn for unexpected register > PR 34029: bpf: allow w regs in store insns similar to llvm > PR 34029: bpf: allow w regs in load insns similar to llvm > > gas/config/tc-bpf.c | 6 ++++-- > gas/testsuite/gas/bpf/mem-be-pseudoc.d | 8 +++++++- > gas/testsuite/gas/bpf/mem-pseudoc.d | 8 +++++++- > gas/testsuite/gas/bpf/mem-pseudoc.s | 6 ++++++ > gas/testsuite/gas/bpf/regs-for-symbols-pseudoc.l | 14 +++++++------- > include/opcode/bpf.h | 2 ++ > opcodes/bpf-opc.c | 12 ++++++++++++ > 7 files changed, 45 insertions(+), 11 deletions(-) >