From nobody Thu Sep 19 02:10:07 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1720169003; cv=none; d=zohomail.com; s=zohoarc; b=UneNowvQha1LxP5Ln41i/0hoSt/EZx6VI6d9IlVZCPkmb0bBNS0PePK/xX+D5lq0rrFW7rnPL6VmpuMaM2a8YIAxZTP0k5FFUPNpOD2T6KicJzdaX0oV0Xs9/XlpbG1fzMufJ8U0tjuTKUkviU+poPYofjCX1SJlnrxe2C+GB50= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720169003; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=eCIJ8bLXeHB17pKaSQdy+AoMR/5GJt+VWuDtEUviVm0=; b=FsG63CBqCu+hvFabgBj2LrQkusTSstE+Ct3go0WIvg3RrdPQa1EMxHljdqXCmIh/x9pS+u7GJLz+FNpNY77MpVOV/U6nKZVYCOZN2MxJsscQD7uRIoOsOXtXiH/pjfTlmIfFcO2407qiE5tSqYCSmo28Qz83QyHjA1aPJ0Tq1KQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720169003460416.38357988332666; Fri, 5 Jul 2024 01:43:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPeVW-0000t9-QI; Fri, 05 Jul 2024 04:41:30 -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 1sPeV6-000054-RS for qemu-devel@nongnu.org; Fri, 05 Jul 2024 04:41:05 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPeUy-0003Df-1J for qemu-devel@nongnu.org; Fri, 05 Jul 2024 04:41:02 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a689ad8d1f6so150306566b.2 for ; Fri, 05 Jul 2024 01:40:55 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf5290dsm660596666b.48.2024.07.05.01.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 01:40:52 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8CE49620ED; Fri, 5 Jul 2024 09:40:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720168854; x=1720773654; darn=nongnu.org; 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=eCIJ8bLXeHB17pKaSQdy+AoMR/5GJt+VWuDtEUviVm0=; b=TSgbsHnue/E35OQm3GNoHsGWKMsPSjc1AKKYlr7r4Q/5Gus3VpQUWYOHHADr7yW/Xn 6KjH8fUtUm6ZZZpXdFsOJjKMtw8/JpU0fg7utjV71BEU6BS4AGXUfk3ADp/0cgNfPylo QtRwzcP3GMd3k3SoltUuDe5oT/tAANzyafEFrWI2N+plNIo35N81t5HTdwFu59BKKUVq ILtpLfNjERNyyYVTc1QHHpeB4GqgyjS4gcDAflKVEM9QqtoNQWsER0M4Xse8lSP6GU6i /SASMJB/KY7M4KMWl0xsqKOyJmUV9vnSmTdQ1TEiA280wx1AucBRwwo2VofemgL5fvW1 2A7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720168854; x=1720773654; 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=eCIJ8bLXeHB17pKaSQdy+AoMR/5GJt+VWuDtEUviVm0=; b=v15ccSoitYHTsDD/dNHwBzBLxOHPQQPoXd4zbz4RnLUyWAfTzEmzT2RAEPu1ZkJvpS wNX20LQmKU+n/TBdLhXv73f8/gnUnpzkjOrSnBr7rHRoAGMaWs9mftlTEAqk4toIGAfv emogo3VLfz68rkqGUdkj81Z11CKiT8c63IRlxoyZ3Y/6OTNLo2u4AcCnig5H4kRzOC+I 0gg6JG3fFoYh6mrbydFbj+WPBL4l2UvF9Zw4erpkQZXdF7Fegr0LcD1IltuuXLgSqOVm y1c78w6ubAY6Jf3jEL5hOx/CdvysIqp2a3oHhO1weRwR19iu0ndF4dNn8Jge8QSH0EeF euOg== X-Gm-Message-State: AOJu0Yy/CorWjCONmmVtZbS9VK4in7yAByOpMnU7nl55umaQ07w9dx1s pZqCiuu9XQL3lah7kIzJwdKhXrMPMiPs4Yo1tXBQIGA5UghrmL+JyPNiSloQ0K0= X-Google-Smtp-Source: AGHT+IGlinUwjXJ6GfTDJw/NBVSEcVveQTLNCCT+Qsw1HBCKNegSH/Ef/wK+SyMZuMrzmRuXjrkp6g== X-Received: by 2002:a17:906:5acd:b0:a77:b81a:2471 with SMTP id a640c23a62f3a-a77ba7115d5mr278975266b.49.1720168853661; Fri, 05 Jul 2024 01:40:53 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Beraldo Leal , David Hildenbrand , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Alexandre Iooss , Thomas Huth , Mahmoud Mandour , Peter Maydell , qemu-arm@nongnu.org, Aleksandar Rikalo , Mads Ynddal , Yanan Wang , Eduardo Habkost , Peter Xu , Richard Henderson , Marcel Apfelbaum , Paul Burton , Stefan Hajnoczi , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Laurent Vivier , Akihiko Odaki Subject: [PATCH v2 09/40] tests/tcg/aarch64: Explicitly specify register width Date: Fri, 5 Jul 2024 09:40:16 +0100 Message-Id: <20240705084047.857176-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705084047.857176-1-alex.bennee@linaro.org> References: <20240705084047.857176-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62a.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720169004798100003 From: Akihiko Odaki clang version 18.1.6 assumes a register is 64-bit by default and complains if a 32-bit value is given. Explicitly specify register width when passing a 32-bit value. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20240627-tcg-v2-3-1690a813348e@daynix.com> Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-5-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/aarch64/bti-1.c | 6 +++--- tests/tcg/aarch64/bti-3.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/tcg/aarch64/bti-1.c b/tests/tcg/aarch64/bti-1.c index 99a879af23..1fada8108d 100644 --- a/tests/tcg/aarch64/bti-1.c +++ b/tests/tcg/aarch64/bti-1.c @@ -17,15 +17,15 @@ static void skip2_sigill(int sig, siginfo_t *info, ucon= text_t *uc) #define BTI_JC "hint #38" =20 #define BTYPE_1(DEST) \ - asm("mov %0,#1; adr x16, 1f; br x16; 1: " DEST "; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; br x16; 1: " DEST "; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16") =20 #define BTYPE_2(DEST) \ - asm("mov %0,#1; adr x16, 1f; blr x16; 1: " DEST "; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; blr x16; 1: " DEST "; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16", "x30") =20 #define BTYPE_3(DEST) \ - asm("mov %0,#1; adr x15, 1f; br x15; 1: " DEST "; mov %0,#0" \ + asm("mov %w0,#1; adr x15, 1f; br x15; 1: " DEST "; mov %w0,#0" \ : "=3Dr"(skipped) : : "x15") =20 #define TEST(WHICH, DEST, EXPECT) \ diff --git a/tests/tcg/aarch64/bti-3.c b/tests/tcg/aarch64/bti-3.c index 8c534c09d7..6a3bd037bc 100644 --- a/tests/tcg/aarch64/bti-3.c +++ b/tests/tcg/aarch64/bti-3.c @@ -11,15 +11,15 @@ static void skip2_sigill(int sig, siginfo_t *info, ucon= text_t *uc) } =20 #define BTYPE_1() \ - asm("mov %0,#1; adr x16, 1f; br x16; 1: hint #25; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; br x16; 1: hint #25; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16", "x30") =20 #define BTYPE_2() \ - asm("mov %0,#1; adr x16, 1f; blr x16; 1: hint #25; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; blr x16; 1: hint #25; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16", "x30") =20 #define BTYPE_3() \ - asm("mov %0,#1; adr x15, 1f; br x15; 1: hint #25; mov %0,#0" \ + asm("mov %w0,#1; adr x15, 1f; br x15; 1: hint #25; mov %w0,#0" \ : "=3Dr"(skipped) : : "x15", "x30") =20 #define TEST(WHICH, EXPECT) \ --=20 2.39.2