From patchwork Fri Jul 5 08:40:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 810361 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1508007wru; Fri, 5 Jul 2024 01:43:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWDaIZi4Vo/iej1VyxLEzZL0VM3GTw85wrTDeTumqQcfcBCtkiPabn5ENgJ5hgwmiutOXKHsDt/RzW2C/1uEke0 X-Google-Smtp-Source: AGHT+IFiSRKGgKoesVdCxtf3nILhDGGPN9Du0phiG1McfCUI7+x+cbtzXNGNjoXXqtkgpMx+sSI7 X-Received: by 2002:a05:600c:4393:b0:424:8f97:8069 with SMTP id 5b1f17b1804b1-4264a3f60b1mr27567275e9.30.1720169004266; Fri, 05 Jul 2024 01:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720169004; cv=none; d=google.com; s=arc-20160816; b=hJUFnw2cxmKrCRbT/QNtZgYDuahYrfcFbewAR4z9PoUcYZh2TLPrDMgPeP91qL4Mf+ nBKx8oAvZzOzv34XlDpY8gSlFiyIGVAMgNfYoST89msFjvqFT4ut4t+2mXfdtfFkuDbz vCwBt+qH6knre2vtQsF0in1syl0TkNX9BMlc3e5D+Ru8+kN9wDDuqSw994Uc3Twvdq3K 1n241dhuLSVmARdMgfgnkw5ikq39OkNc8AVTULVVEKQADyEyXSgEIjPk+mXFAXZMDwWI w9r+038FuB5HmJUM/daB66WfliQqm0Z04tcuSPaufPa3bCcCmijuF3g3DGpvhid97/vv Zqog== 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=eCIJ8bLXeHB17pKaSQdy+AoMR/5GJt+VWuDtEUviVm0=; fh=jJAo5/p0ZYR4zINrfgZ/Zs9vrNoEEOPakMg37pTjRb0=; b=Uqppa3mixxNZJAX9wbsZ3ebDqW5EDCjMbo30V5M5kQXLJTGZ3MLl0gRP83WFlESELH GVVVYFtOppl7y9TEmtLkQPPnZqyFMU2qthKgiC9Eg/+Vb63yK7paWGL+O8FVRtyqBPs3 eg09MtQhVI3rUQDU7bJroh0Mv3mqFSXk2+iOQ4RDqWW9KivRw8dfVFa0h5tmEdZcgq2G gRdR1xxCFbyy3yThz/SX20FvljwOUR1tLopCjCIJNksJwEmzGCaH+5D0qppmEKGO1S8/ bIcoT2mxnkG+aade4FC95my3KCmnI1Hsb7kefsvBiBVZdkWWlEksGs6YO30TLz64YUIg uY9g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TSgbsHnu; 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 5b1f17b1804b1-42654c9e395si3136315e9.104.2024.07.05.01.43.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jul 2024 01:43:24 -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=TSgbsHnu; 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 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) 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-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) 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) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Beraldo Leal , David Hildenbrand , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-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_Benn=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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é 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ée --- 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, ucontext_t *uc) #define BTI_JC "hint #38" #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" \ : "=r"(skipped) : : "x16") #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" \ : "=r"(skipped) : : "x16", "x30") #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" \ : "=r"(skipped) : : "x15") #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, ucontext_t *uc) } #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" \ : "=r"(skipped) : : "x16", "x30") #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" \ : "=r"(skipped) : : "x16", "x30") #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" \ : "=r"(skipped) : : "x15", "x30") #define TEST(WHICH, EXPECT) \