From patchwork Mon Jul 22 18:44:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 50690 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp2205618vqm; Mon, 22 Jul 2024 12:01:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXwsZBNp3Cj9yem3eNk7+OP9wL6nds1GVwDSZBqA4oFK3UNAeR2hDAnIhjqwTIaeFB5qFKWKnI78g08kKdMHFrUMDsHuMLiOXJRMA== X-Google-Smtp-Source: AGHT+IF9ab00b4pioZu6P8L6M1dYsyHaLc5Ff4R0fzQt7RZcCU+Ngv+kxza9O0w7MH80S+Mxkcqu X-Received: by 2002:a17:907:1b26:b0:a77:a1f1:cfa0 with SMTP id a640c23a62f3a-a7a41d08905mr771533166b.36.1721674913350; Mon, 22 Jul 2024 12:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721674913; cv=none; d=google.com; s=arc-20160816; b=P8bTYaZRCsr41Jj253/CQpjyaBoEzylKXmkUwX+nUCzKHrW4J9faXqDUIg0TPULR1s eQlWW4a2y1gediTr7i1jt6tEsCLfhI2c0VHiyNBHLwaJ+39MSis+a/PR5V2C54EhFbzM A7eWDAfXtJghmhpkAwvghYANET4txvRrt43cnqhS0/oo7Zx8a5ZqbQ2ODxU/Uy6GZ1fE uNhMZTM/CVdeGCWXtgtd3CgXoBaZ66bK0WwbTW76cIADwFN55pRga8ngZciDHlXMwmRf snUo8pbuh5TQk/4e9GXtd/fCiWvPA7IyRybr524eEWQiCcL+yZzTZ6zkik/93Vt1lkro zLVg== 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:delivered-to; bh=wB/jR7AYp1L+eeOBku9vVsaPt2FbyOD1NhFDRONUuMU=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=zAzqWwKbsa1t8SE+rL5buKnEWQuxBp7JU0WkkdakZ6knyLpeipJBqCDobYe4nNS4DH OlfZKGjcKod1V70uLqPmFy/4mGwZdy/CV1+IPmgCXuoF2Y0SnobR3j7qQPNhRqfZ/a32 gXKwx4DciBKE0Ab6iYfOCUCFcQpzyL3ES5peC2JHVvMbiTmNyW7LNXLr9IfHzbnETqfB JtxPg+MYjv7sIKHnJoLKD5H/erBYYK5Gxr9ZpOF/d5Ee3MUDvvIcfeNR5VL7Nh0ooHx8 SNyKMqyQMeAi1bC/UgCtohT3eAupiYqbC1MsdauTA4bo1z6S3Ch8TaH7XCHLwjxZG8Cm JQYw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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-a7a3c95171bsi439936766b.808.2024.07.22.12.01.53; Mon, 22 Jul 2024 12:01:53 -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; 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 4DD1268D756; Mon, 22 Jul 2024 21:44:45 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7863868D6FD for ; Mon, 22 Jul 2024 21:44:37 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id E7CD7C023E for ; Mon, 22 Jul 2024 21:44:32 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 22 Jul 2024 21:44:26 +0300 Message-ID: <20240722184431.40853-7-remi@remlab.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240722184431.40853-1-remi@remlab.net> References: <20240722184431.40853-1-remi@remlab.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 7/9] lavu/riscv: remove bespoke SH{1, 2, 3}ADD assembler 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: ZHNBYI7tPqUY configure checks that the assembler supports the B extension (or rather its constituents) anyway. These macros were dodging sanity checks for unsupported instructions and nothing else. --- libavutil/riscv/asm.S | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S index 0c29680d84..8b96e07b75 100644 --- a/libavutil/riscv/asm.S +++ b/libavutil/riscv/asm.S @@ -83,25 +83,6 @@ .endm .endm -#if !defined (__riscv_zba) - /* SH{1,2,3}ADD definitions for pre-Zba assemblers */ - .macro shnadd n, rd, rs1, rs2 - .insn r OP, 2 * \n, 16, \rd, \rs1, \rs2 - .endm - - .macro sh1add rd, rs1, rs2 - shnadd 1, \rd, \rs1, \rs2 - .endm - - .macro sh2add rd, rs1, rs2 - shnadd 2, \rd, \rs1, \rs2 - .endm - - .macro sh3add rd, rs1, rs2 - shnadd 3, \rd, \rs1, \rs2 - .endm -#endif - #if defined (__riscv_v_elen) # define RV_V_ELEN __riscv_v_elen #else