Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp49533rdb; Wed, 29 Nov 2023 19:45:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgC9IUjaDNhIsrbFxnj8gijnWCw+WiEvlQkoZnzajOzg+URdTbzeDRU2PoVt5K9kadWmDF X-Received: by 2002:a17:90b:3b43:b0:285:940a:b9c0 with SMTP id ot3-20020a17090b3b4300b00285940ab9c0mr19923405pjb.35.1701315950636; Wed, 29 Nov 2023 19:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701315950; cv=none; d=google.com; s=arc-20160816; b=qMQUCdmyMFeZOerYuCwvUkA6VImQRXg8oS3KA/MPHxHoELwM9mSlA3C9yF+XAre6x3 kFk/MnJxVrG2xXF3dzOQHSXM5UaEdm2hna6yqXJFruDOiPJixmNxPbYksdZ49TTGIvka zSDrhVEcd3bYEl65vzcLq3CPCs6oQ81abYmwoL+EEd2NBEdmixjEXrdj/OZmKng/nZWw 950ko5004ekUgO6GkvwgJA2xUBcDFzqa0tyd05Vf+2GalkKDIucdCNNZD0qph8tXvCpy 7bf2qkWFAIKNPxYeUFZ12mzmEC4ECp38+6YVLt22E2LGc3ydKRjP7nPe98NYGLTRmikv pnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PxMMrFJn3/fuPwVfXBvcwW6Sq8UXFLsxmUPARPYx4nU=; fh=hbDYsk3NMQsYE5pJBHrEPglPE2UiCl9E1EG1qW5pXes=; b=FxT7+Do0tk5FjjLmJOelyDvTSX4bZrW0kjN2/hWUCC3NEU5d5aDvcEMHIIrOKJHUHv as4PGj8biXcKrVPuKC/Zph/z7jsaRFk/SrbhFMaN5oH/XoFQLaepCj/mjfL1M8u4+0/V QneqUWBYJym52ScYoCHw4gXMwvx8DWZ4dpZElCt4+kayBF5LsHpsO00EFMCvRVXwQ4vk enWcX3wNOp9qW9h1kKP+WXsfYUZ3Ql6jRHdMSKf5BGfN6mgMgfhYrLhTwf/5kFaVCJ2d jDPg1BpVWpbMDb67sSDtHmP8xGy5tOpXaVYoRS+xY90Kocic9ATlwyjm/ClMUkfFVlHD +uXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NocDVQWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ep13-20020a17090ae64d00b0028619a19412si410509pjb.126.2023.11.29.19.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 19:45:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NocDVQWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BFA58807962D; Wed, 29 Nov 2023 19:45:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234931AbjK3Dox (ORCPT + 99 others); Wed, 29 Nov 2023 22:44:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbjK3Dov (ORCPT ); Wed, 29 Nov 2023 22:44:51 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF13C10C3; Wed, 29 Nov 2023 19:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701315890; x=1732851890; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/utSN1OR3/EBzwgfC3LaKdPzu0BgF9bHkLiCMUBUofc=; b=NocDVQWuviovUPFiaqbaSmdDz03DUse0299YjCPORM+abZQnvdK4mYhs K13hDzPEzgeyNhY3gZGHlp0jwA3vg/7PtE6QNXimvoU4jh867emnCW9vb LruoaHkol5Rp1agDl5QigLWKh+m6bPPG0R4UGQX8SswhQWXrRsS5NAtai rUCNbYLKLA4ASKgCTErKt0shZWtzclTpr3Io3hPOTtL0fbWh7kL0Wwun1 kGzMCePfuMRkqhbP22z39ATc14HltCXQwFfXqkIB6vyqEfvI9XSyc+iwD pRNUb1mlhHrGG9falUUgphFa6Xv6Wf2zsf9CaOOIvWh3PQT0AcjjS9gVn w==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="393007738" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="393007738" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 19:44:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="762546446" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="762546446" Received: from yujie-x299.sh.intel.com ([10.239.159.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 19:44:48 -0800 From: Yujie Liu To: Alexei Starovoitov , Daniel Borkmann , Johan Almbladh , bpf@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] bpf/tests: Remove duplicate JSGT tests Date: Thu, 30 Nov 2023 11:40:18 +0800 Message-Id: <20231130034018.2144963-1-yujie.liu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 29 Nov 2023 19:45:10 -0800 (PST) It seems unnecessary that JSGT is tested twice (one before JSGE and one after JSGE) since others are tested only once. Remove the duplicate JSGT tests. Fixes: 0bbaa02b4816 ("bpf/tests: Add tests to check source register zero-extension") Signed-off-by: Yujie Liu --- lib/test_bpf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 7916503e6a6a..87a4ebcc65be 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -12215,7 +12215,6 @@ static struct bpf_test tests[] = { BPF_JMP32_IMM_ZEXT(JLE), BPF_JMP32_IMM_ZEXT(JSGT), BPF_JMP32_IMM_ZEXT(JSGE), - BPF_JMP32_IMM_ZEXT(JSGT), BPF_JMP32_IMM_ZEXT(JSLT), BPF_JMP32_IMM_ZEXT(JSLE), #undef BPF_JMP2_IMM_ZEXT @@ -12251,7 +12250,6 @@ static struct bpf_test tests[] = { BPF_JMP32_REG_ZEXT(JLE), BPF_JMP32_REG_ZEXT(JSGT), BPF_JMP32_REG_ZEXT(JSGE), - BPF_JMP32_REG_ZEXT(JSGT), BPF_JMP32_REG_ZEXT(JSLT), BPF_JMP32_REG_ZEXT(JSLE), #undef BPF_JMP2_REG_ZEXT -- 2.34.1