From patchwork Sat May 20 16:26:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 684310 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp448189wrt; Sat, 20 May 2023 09:29:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7uUiFbnXjtPllcDU5oCXeV8MP8JCaIpKULs7Dmt48Tyhb5rToxpqGLuK9dWeCK6DIUXFwL X-Received: by 2002:a05:622a:1493:b0:3f1:a6d:d99c with SMTP id t19-20020a05622a149300b003f10a6dd99cmr10740237qtx.34.1684600183689; Sat, 20 May 2023 09:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684600183; cv=none; d=google.com; s=arc-20160816; b=PkS3itr0c9yVWyUUHa0SCv0hS45u50ryToxm9g3UdphaqlcvY7KpSQEqLnV7QAbupq a7gDFAy1jUSmf5pVfoF9/OexeoaJCzSxKhAH3kL/17OoSkfQl3CM/QN11RPLg8qDGFYR Ju7SPXc1aS4IEP0njTvSw505imATKfwRomTyc/uHSEOnxCBsATfJZn9CtG5WUiLEzRNg 1qfNx9rr7Moyw3g69pr0UlcYCBtH17wOZcsMgUQA4bu4wl9roVGjhlY+qCYir5QIt5bX EgzS+RTHF89UqPeXXOdM2GGAZNb8NWOurX6tCxv14ulVsPAgqQzBUiv+PrzlcS8DDBKa vmmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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:cc:to :from:dkim-signature; bh=AHAmgIp57eQq/xk6K8cmnraRLR5HX4TvEutgtaIW/48=; b=qnzaRBOGMmvu0PBoo4I84o4t3LCEeOtUomNIoiWclEtfy1cl/HfXhpocpwNWlDSqrj oL5YMC3XDyuRghNMFn/E6VrqAdJ05Rr5QBsdWqUB8A75JNcek0A1AITI41xitZUcIO29 bVclBDhULA5DkeMJ2t4BZxYaVKnNjOBMysz7IZh58YyEKWAoggrIHsR5Fmb5QaiEhadl p/+MgRu6GZoSnixLIzRPO8B6Cy0mLX/T+uRZh4PFEk6LDigKII+mK+Im7+2QHGQVKtdW IoR0sji84JWI73vYDkxzpH6Dg9f9nYfGPmJkmqBehKq4fENqp8Nwgr8y8snhWPixwNVQ 7bOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVu4BAXH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z19-20020ac87f93000000b003f4ef4d694asi1370202qtj.4.2023.05.20.09.29.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 May 2023 09:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVu4BAXH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0PQH-0003kL-60; Sat, 20 May 2023 12:27:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0PQ9-0003fO-64 for qemu-devel@nongnu.org; Sat, 20 May 2023 12:27:06 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0PQ3-00039B-1v for qemu-devel@nongnu.org; Sat, 20 May 2023 12:27:03 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1ae851f2a7dso11661935ad.0 for ; Sat, 20 May 2023 09:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684600016; x=1687192016; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AHAmgIp57eQq/xk6K8cmnraRLR5HX4TvEutgtaIW/48=; b=gVu4BAXH5NbAJI0BPJ2q1YYcSDfuVbxJV8Jtpze6pFN5Ow8tbjCDYwsd2Hnre/CYWS x0Nq25pzGKhpqA9bacvZy6inhNLlfysgpqUDWKgBQpYn9IRIb8soCNynNGTkC+2uU/Cj uH6JFJg2SfTGpcFQDbcJukVweHHZDiU2/PunLTbIvp18RB+i+whcWyA2+W776LmSMDsE woqwHEGtaulH8/orhywc189NWc1dG5YwChzo9TL8Zy0ZIYI0UcIpQi3Z26KgVyaWKReZ yGCVdEKH/b3T49/aMM/NDkmsLfUzD7AHrEGNx39ue+/84KctH16mbh+qKG69oJM2sLvD DZ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684600016; x=1687192016; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AHAmgIp57eQq/xk6K8cmnraRLR5HX4TvEutgtaIW/48=; b=aokROlIISklo7EEWDhe+3MXcsN8FgvW+Vgqt//8Sfa1aMXHfd6k/o2jKrtGqYW8WzR Ca64DhWBqwTKiyV27udMN7sJu0Hxa/0lxVgUhfJB+eLDZefMUhHxwx16OWJ5QiJ9l8uv VR+1gaM2ouF98hiGmIiP63FxebK204xjCS+ETbLZ8LKYRi3AkB6Zw905t6Gzk1EqLic9 L4t/WPuToyIopdD/BZdnmQSNudmfM+cULb2wxYvSAyUVo/C0xFC9IoUd67zV3akloaW5 w6YAE5WXT/Dbiyrp1OLqqTdvdkJ2wA3f9cjo6pMGovmHSplZNxHQcBty/5MYV/vE/ji0 67CQ== X-Gm-Message-State: AC+VfDxT3R4DRMnv5PcKT79mcsu29fnkTam3pU888sKcj7IpFk4tp1ZJ r75ixIVXesZQRjgcMQwWKHEzVjtGTkxcdHQllDI= X-Received: by 2002:a17:902:ce81:b0:1ac:61ad:d6f2 with SMTP id f1-20020a170902ce8100b001ac61add6f2mr6773788plg.5.1684600016500; Sat, 20 May 2023 09:26:56 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:d078:d94e:cb2b:a055]) by smtp.gmail.com with ESMTPSA id d12-20020a170903230c00b001a5260a6e6csm1697104plh.206.2023.05.20.09.26.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 09:26:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 12/27] meson: Fix detect atomic128 support with optimization Date: Sat, 20 May 2023 09:26:19 -0700 Message-Id: <20230520162634.3991009-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230520162634.3991009-1-richard.henderson@linaro.org> References: <20230520162634.3991009-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Silly typo: sizeof(16) != 16. Fixes: e61f1efeb730 ("meson: Detect atomic128 support with optimization") Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4ffc0d3e59..5e7fc6345f 100644 --- a/meson.build +++ b/meson.build @@ -2555,7 +2555,7 @@ if has_int128 # __alignof(unsigned __int128) for the host. atomic_test_128 = ''' int main(int ac, char **av) { - unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], sizeof(16)); + unsigned __int128 *p = __builtin_assume_aligned(av[ac - 1], 16); p[1] = __atomic_load_n(&p[0], __ATOMIC_RELAXED); __atomic_store_n(&p[2], p[3], __ATOMIC_RELAXED); __atomic_compare_exchange_n(&p[4], &p[5], p[6], 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);