Message ID | 20231031200925.3297456-5-adhemerval.zanella@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp1841770wrt; Tue, 31 Oct 2023 13:10:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExBjE50le74yLrGnoWW1G3Qh3a5DTFaNIU0C3+2+19PjyYrtY2G9nDjLQxGjLgFl5xeKXz X-Received: by 2002:ad4:596d:0:b0:655:d82d:2fd0 with SMTP id eq13-20020ad4596d000000b00655d82d2fd0mr12717831qvb.21.1698783001048; Tue, 31 Oct 2023 13:10:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698783001; cv=pass; d=google.com; s=arc-20160816; b=OjJaAmDcdxrpABU85WAldM6Q9qt/SPST+J1v/wPyXN39BN46U8Q4z1rXopbO32exqH KboME9F3KDgm8V5vtpW9RjOEdvCGeVKIZ0DyRreYJYrWjD0AVrjbE2RvVLrYES8V3CTX cDOumUGevwn86r+lDIohuCczwj9HG5kHG/oUZyZi1ELgCWB6UmIulPkTtWwZW8bl1hRS 3hUI6N0afkCINJtHIetyQBB8+0H+2euliOJRxKA2bWVbbmeZq7uSyRo6Lm7S+Tu009iA zQ20e8BhGtiDT43mw9Nvta5bc3eM7KjQxx+Oy3gYqReMKDr7BG2Yjqtnqmld2wN+QORJ 9xHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=/ycWYI7V3yRtlW1yrmQJ6N5wMgUs4/SIymF2BafYsjw=; fh=pPFR/wQ0k/GuqyNsntNA5LqEpigLoSYvby6BmJvILyA=; b=M38+Wv2rHdfESPm4O5MwtukEvT1P6rOL1yKIRr0mGKUadKBWfjhXAgWeqqfqbrm4io JqG9ywOr6jSfBolroltS003weJH/t5mGJlMYx/isJn0Ntv5IKmYoj++YDdpkdnThBXM3 +OtrkmDrw/M9/Us9j7SkFLxMH5uL6qU7BIWibT+W3mq6ASKn/1q/uUWkdeU1v0l+poMt NQYBIB5xWd5SmnPdYg/CkqwE0/4xB5rIvjFvWilujvUIOvTLO52aO3r0RyXkKrU1EhAN elKMLcRakGatA51nkcIPWjyEjYYiyXPZ+Ehk1mX+6SVVlMgRMjLm/6cHiOyYocVpSDMm aMnA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hGe9aw1A; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <libc-alpha-bounces+patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id i7-20020ad44ba7000000b0066db35647d6si1690318qvw.504.2023.10.31.13.10.00 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 13:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hGe9aw1A; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 90CB43857020 for <patch@linaro.org>; Tue, 31 Oct 2023 20:10:00 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by sourceware.org (Postfix) with ESMTPS id 56F613857732 for <libc-alpha@sourceware.org>; Tue, 31 Oct 2023 20:09:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56F613857732 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 56F613857732 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698782979; cv=none; b=Uz8CMHeRfQijPXD2WLsKsPx7V2PfdoJWNzub+388buOA5kXe97OUO2xWu25SyD7/LcUgeD/hasPWg/a/H9xKb/ox6wVhtg59B2rPT+exKOEL1/3sZsJ80JVEUAU0nlqK6/9+oDQ4+ZwQV0v1vHUffZZvkVvRCMCLJOItmziQRXg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698782979; c=relaxed/simple; bh=kLCbBIidU3UsjLdccD2m4jrtJ6R7Ek0qnK9dQSWWjAM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=X55R0X4ak4BLSnQna2CImOzIY+RlQchWyDbJf4DyDmYS4B4cqglKXP0JbbkrjWAd3RxBml31gagvOOdXAlXTjz25Gt4IWldY1WWtimF3f0fvaQTHiMoWt3geA8rVCY5oHzOiLbedeNZYgz4xG6rjIkIaa6+1I3UqGbnx9nAz3gQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a7e5dc8573so59910097b3.0 for <libc-alpha@sourceware.org>; Tue, 31 Oct 2023 13:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698782977; x=1699387777; darn=sourceware.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=/ycWYI7V3yRtlW1yrmQJ6N5wMgUs4/SIymF2BafYsjw=; b=hGe9aw1A50CFvi3zpvCjc8PEVyiVzsGq0kTVHX3MOXCvEyAejZXShXSBelqDHwLvLu WR6pwR0GKXG6RLsYtu5FaZvlPqaTuo7qDph5/yGZqNLkIao+fl9QaRjt22X2u43TgQvm q+3vIZphafjq7aqXPgms+M4OdbGVGPIEt2TjnnlsS7vdgybwiTNcUNC7sb6exHRwD8sx Qpumzynz9R3b2R5sYZjCLvY3GuFmqKZ3+BxPv5TYjoxc3RO2vcBCADhI5bXeN60xs8SR XIwebPq6TPfuNaqN6GjkEiR5ABUlEnUs1XxtCsYWOFiexHyiwYpUd4uDo2tmREMYNV9w H5rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698782977; x=1699387777; 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=/ycWYI7V3yRtlW1yrmQJ6N5wMgUs4/SIymF2BafYsjw=; b=ILUtMW39x3SWtZZc2BZ1ZZCTC9KAIiqUCyZhMCDhqyg4zL7hoJ185pvDqs04bas+l5 w9fjl1MgGxbBmsfZzfk09m1Pmd2KVN/L6KhHMhXSJSxUqiI7Ywd3bEyloXcPmeylCL+Y dAsZNHEIXu024VdSFPkUb1fz+2SC02+RKZhKdrQQLqGJVmOZRhFWwg7vU+lm+fwPIEOK +uxv7Ty8VbuUejZRQu3LpH9HeVJevVBVm+i6yfVLxJsQ/HqmB1H2vqnR/TZsJdZ56GNg qCXYWVQbU8Uoyv3ad45W19pmFxHNlytO9A+Dfio/OCSG72Bkj8W1tpuXiLK3b/+ZrTR5 Rvig== X-Gm-Message-State: AOJu0YwtqVzCXj/NYjIWRaqckXF2Qv7/RKAPEsTazSnmmuHx8MG4ff0F rBhG7XIoiHcJdwhhDrYfvbdCB7ccl4CXQdQE5PMk/w== X-Received: by 2002:a81:d00d:0:b0:592:ffc:c787 with SMTP id v13-20020a81d00d000000b005920ffcc787mr13368074ywi.30.1698782977120; Tue, 31 Oct 2023 13:09:37 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:3d3c:6c87:9be3:8cfc:976d]) by smtp.gmail.com with ESMTPSA id q69-20020a819948000000b005a7fa3ccb32sm1264111ywg.35.2023.10.31.13.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 13:09:36 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org, Noah Goldstein <goldstein.w.n@gmail.com>, "H . J . Lu" <hjl.tools@gmail.com>, Bruce Merry <bmerry@sarao.ac.za> Subject: [PATCH 4/4] x86: Expand the comment on when REP STOSB is used on memset Date: Tue, 31 Oct 2023 17:09:25 -0300 Message-Id: <20231031200925.3297456-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031200925.3297456-1-adhemerval.zanella@linaro.org> References: <20231031200925.3297456-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org |
Series |
x86: Improve ERMS usage on Zen3+
|
expand
|
diff --git a/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S b/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S index 3d9ad49cb9..0821b32997 100644 --- a/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S +++ b/sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S @@ -21,7 +21,9 @@ 2. If size is less than VEC, use integer register stores. 3. If size is from VEC_SIZE to 2 * VEC_SIZE, use 2 VEC stores. 4. If size is from 2 * VEC_SIZE to 4 * VEC_SIZE, use 4 VEC stores. - 5. If size is more to 4 * VEC_SIZE, align to 4 * VEC_SIZE with + 5. On machines ERMS feature, if size is greater or equal than + __x86_rep_stosb_threshold then REP STOSB will be used. + 6. If size is more to 4 * VEC_SIZE, align to 4 * VEC_SIZE with 4 VEC stores and store 4 * VEC at a time until done. */ #include <sysdep.h>