From patchwork Tue May 23 13:47:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 684919 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1728522wrt; Tue, 23 May 2023 06:48:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68MRWIcpzie3hoEhrvqmAr1MKq9ZoT9nFAkr0MQf8vgHtiw49uHa3y4JBKov78UZJ9hM+T X-Received: by 2002:a05:622a:1a2a:b0:3f6:b5b3:b7c0 with SMTP id f42-20020a05622a1a2a00b003f6b5b3b7c0mr5554431qtb.37.1684849693640; Tue, 23 May 2023 06:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684849693; cv=none; d=google.com; s=arc-20160816; b=d6qw/8T/FxfyE82EPWgXB4utsWBf0FgPKfeJBbLE16lnf29CqpgTzXz/0Y0FHEf4M7 RRXWAgo/o0Cz2t8fun27Y0ZSlLyvk8mvRicRWfMnoSkgecvo+sq7i2dyn+jhPQZKnsz3 mryt//o2ixoO5dqXxUnl2K04m6wfCHwDRQl4sLQOC0QHLU6F+DV699Pvou8Jj5JrsM3h 34B84ToqTe+w+yyz+EjhmulmoPvIs0/kNscY2VG62HoF7JIdm3Fkyq7yTtDXcTBgxQwu U0Y8UR4swA82pvaurvlO6LPCyGswzIpWl3YUPpUKL6tC/zKNTniy+tLSxDbhOi7A5xyJ pWPg== 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=Ga9z9BMWvgZJWDH0KgOQhGEvMXXMnmqA3xWrk5W7Afk=; b=dOYx/ETBXXTDwZzZgRG39KIiewziX27vv8n5r3SwsFGazkjyrqf1qa/Y9Yni2mX4HH YkQYM2QxlLFZXCSUuyukxvtIJarZ9utatTlvvN+MNo+MDogqUNMcfHxhW6AnFXZIXzOM hpOLBlm5ZEHCszpqD2zT72cqkp2NLM+YSd/8ArdkB6tpMFLAHzus4fk/rQ1nTdZ2aYmN 7e/u/oOfJ5vWT+7yTlBlXFZK2tBnBvNXLDyYlj7IoRPtFe19XJ9ttkD52QtZrxkRlWSu 5wJs3pOF7UnOvAJrK3zJiiQQv1C9FRLuKS75hwrdI6hobCjnD48Z434C0fB9txFQzCtD 3Wjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L4hvI9bh; 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 m8-20020a05622a118800b003f5269a2005si5222743qtk.282.2023.05.23.06.48.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 May 2023 06:48:13 -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=L4hvI9bh; 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 1q1SMk-0000YZ-TF; Tue, 23 May 2023 09:47:54 -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 1q1SMe-0000FS-V1 for qemu-devel@nongnu.org; Tue, 23 May 2023 09:47:48 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1SMd-00016k-G8 for qemu-devel@nongnu.org; Tue, 23 May 2023 09:47:48 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-64d604cc0aaso2237385b3a.2 for ; Tue, 23 May 2023 06:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684849665; x=1687441665; 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=Ga9z9BMWvgZJWDH0KgOQhGEvMXXMnmqA3xWrk5W7Afk=; b=L4hvI9bhaV/6tUzg9U3xkZcxFjslbo3GBhhHVrD56KYji0jPgFjhNknet2NUhLzIGG 3qimuT8aZ78lzWCIvEOxjs9555K3oIOU+lQwU5DnhjWFVGvzc78i+P9qWpNX0sxS4lQ3 ZreNyNzDksnu5d5h94fkiB3Da0GEVBSU/QoJH/gP6V0y3/lJCfqwbrbU4x6sOnhBHUep m9hw/gxjXomiafRlDr7235hqQ1ELLaH2uLs7yGjc9WRJ2cuaOBNxmv0jgfeKZ8gG7Q/n N5gYWDr267u+L9S8Agr4cbSvgXj87bqiUY+ur+TB6D+GQVqXvY7EHumqLJC67jfHXWHQ BRwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684849665; x=1687441665; 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=Ga9z9BMWvgZJWDH0KgOQhGEvMXXMnmqA3xWrk5W7Afk=; b=gv2GnM++3K2D1cHa8VZvKJEoxoFuSo8GYiVhHqDJETo1TfmDNPC9tPkiOsYauvaKAU pMxD63uaLug05OyC5m2kvFzlBan87Fsok/sEhoyS67ZVxYGfG0zDLg7dBlMidE5dddZd ZAI2NVRisQJb/4c+mwGipJdw9gaqswviac3qQAw4Xd6dVsCFm1OMVz7ERbXxWXiGedzC 7VvfyDFVLDcu9rGRLE3yqZh2BDgdBJqGB+4fpgXBFxMG1nJTPLVGeo/1S5IOi9e+RjB5 tx5TnK95ZGPmNdK+qpmjDCym3jXNep0htCFycwXAx2E/J5sXgkWStMNAsJnJKHLcknO3 2SLw== X-Gm-Message-State: AC+VfDzrcAM9z7zn71ttmGMTFNS0O772tXM0IxQtbMNV8FVbacXt6lxJ GxZ8euzQktvtA3PUAjGf8TCSZHHi37sp8Gm/c4o= X-Received: by 2002:a05:6a20:3d07:b0:10b:1c98:59b2 with SMTP id y7-20020a056a203d0700b0010b1c9859b2mr10270054pzi.21.1684849665336; Tue, 23 May 2023 06:47:45 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:c13a:d73:4f88:3654]) by smtp.gmail.com with ESMTPSA id j4-20020aa79284000000b0064d1349dc31sm5737122pfa.199.2023.05.23.06.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 06:47:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 12/27] meson: Fix detect atomic128 support with optimization Date: Tue, 23 May 2023 06:47:18 -0700 Message-Id: <20230523134733.678646-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230523134733.678646-1-richard.henderson@linaro.org> References: <20230523134733.678646-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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=ham 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") Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c516b911d9..ef181ff2df 100644 --- a/meson.build +++ b/meson.build @@ -2557,7 +2557,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);