From nobody Mon Nov 25 02:07:08 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 ARC-Seal: i=1; a=rsa-sha256; t=1719496753; cv=none; d=zohomail.com; s=zohoarc; b=hhiYvXXKYADzP1wEkP4URO2IRjMlmA1jWFysny+IigrPCPdMMq8GTKOoVbkV581btmeGXRsHIITlLMcBW0bduyiM1Rg3InEd8wLIy/akqFdKIM9J6LHAuSLjAuO5J/4sE8NgFR1wIHzO1k3O6+KyZyVDKth++A46nzieDmxZ+NI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1719496753; 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=BSj5UfHR8CwIYmczT5ogPQso3k+OuOQGUbx+sqgpj6I=; b=FJ93h6B1TQiXfrBSx+xDCYId6ac0ytA275jaj+gRGKC8SJRcBsonYJOQAdGSiPCOmgRe6JTXK3G2xR6jJeTTyHHIpCpdrR4vGyPvZiTKe/kom3TqhkFY1pEnfih/azt/uIJWVYxJqHXwabqBO8SuTFCQzbNcMTlK2CbGpW8gtm4= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1719496753519435.9704171133553; Thu, 27 Jun 2024 06:59:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMpe2-0002Z9-Cu; Thu, 27 Jun 2024 09:58:38 -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 1sMpe0-0002Vv-Oo for qemu-devel@nongnu.org; Thu, 27 Jun 2024 09:58:36 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMpdz-0007tw-3G for qemu-devel@nongnu.org; Thu, 27 Jun 2024 09:58:36 -0400 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2c7b3c513f9so6037203a91.3 for ; Thu, 27 Jun 2024 06:58:34 -0700 (PDT) Received: from localhost ([2400:4050:a840:1e00:9ac7:6d57:2b16:6932]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2c8d81d29desm3636081a91.53.2024.06.27.06.58.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jun 2024 06:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1719496713; x=1720101513; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BSj5UfHR8CwIYmczT5ogPQso3k+OuOQGUbx+sqgpj6I=; b=SLNyWkL6OlQRyWGY+ng8glzyFIEzQ6pIxmWo7p7mJqs1TGdfVxDeq5NpTaT4tVVtE6 cM6N6Kdwkr72esBiUh7c/4iFodHKl4htybP61V9Sjm2cVVYqjGpjVEyJOSX0PDOXjJYy eFM7nwAkjnwT4VR0TFhK/y/N6V9/YQoDgQ6PDZfr3zEl86NNtIxUEFNlWXZYyceCuZOF j0f8Hb64aO/WCupW4/hoMEinb/F0TMELG1iZLIMnLGZrlSacanqCetWzne72HSfFxvy6 iICSPOZvIfbdQaJseefICarA0+SRrxJr+clsYC50783Gxyw+R7+V+vaeFvQXJVLvO+vl N1HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719496713; x=1720101513; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BSj5UfHR8CwIYmczT5ogPQso3k+OuOQGUbx+sqgpj6I=; b=BwZ+cJSyLD9eiG0Prw7IefMi+f5OXTMpfGL2MIcZURDf5ER6wu1W6sDiODy4Ead5iE ruUpqb1x+ZivEQB6dq1XjN0FCexEGPECSKjwoxpZ7ownAomQdmoKIFGFszJGL6XwTJsL TNUzPjE6GrzbNlypaFlLcfCUBbot8ZRSLfO5Fb2Uste8RaRRz8A+aYVx/YDWDtSoXeSi juE3Z1aCkxq34rEQIjDtDvhedQQIu5LrsFqIJsbp6qqZjkZ3d8KsRTFkfTUfWRUKkTdr MEPRiHp6LP6QvsHAcJAdKYLvX6Qo+FEN/xl7a1C/iMCERIL/84/oKxLZ6CXCfKsL3UeN ifZw== X-Forwarded-Encrypted: i=1; AJvYcCXroZTUGEf0oyyFTw4oAW171q0eyx4Hzd2Q3LJLoNS+HcayPQYCYmPZZJ+WsCCnVDecB9HM7qQrcmoSw/8M0/OEtM4PMLg= X-Gm-Message-State: AOJu0YzXXSkcObQSGTxqgk3kUMU8eFihEz7zw3kN8Rp/lc7YYzmeK4jW Vhr2sbBB/acd5e6MdcE0+nYDy2swqmdpyJsgccpImQsLiQ6rJry0ipOeT02zTek= X-Google-Smtp-Source: AGHT+IEf4dsZHvExAcW6pneOlMn11MrDMqgHOtHTcuA5J99ZmovY/grAUEHy5xK7aX7my2rfIvTWpg== X-Received: by 2002:a17:90a:ba83:b0:2c7:c6a1:42d9 with SMTP id 98e67ed59e1d1-2c85067fd85mr10909047a91.49.1719496713609; Thu, 27 Jun 2024 06:58:33 -0700 (PDT) From: Akihiko Odaki Date: Thu, 27 Jun 2024 22:58:07 +0900 Subject: [PATCH v2 6/6] tests/tcg/arm: Manually bit-cast half-precision numbers MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240627-tcg-v2-6-1690a813348e@daynix.com> References: <20240627-tcg-v2-0-1690a813348e@daynix.com> In-Reply-To: <20240627-tcg-v2-0-1690a813348e@daynix.com> To: Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 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: none client-ip=2607:f8b0:4864:20::1030; envelope-from=akihiko.odaki@daynix.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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 @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1719496755165100003 clang version 18.1.6 does not allow specifying an integer as the value of a single-precision register. Manually bit-cast into float with vmov first. Signed-off-by: Akihiko Odaki --- tests/tcg/arm/fcvt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c index 157790e67961..14c9bb669c91 100644 --- a/tests/tcg/arm/fcvt.c +++ b/tests/tcg/arm/fcvt.c @@ -355,7 +355,9 @@ static void convert_half_to_single(void) =20 print_half_number(i, input); #if defined(__arm__) - asm("vcvtb.f32.f16 %0, %1" : "=3Dw" (output) : "x" ((uint32_t)inpu= t)); + float tmp; + asm("vmov %0, %1" : "=3Dw" (tmp) : "r" (input)); + asm("vcvtb.f32.f16 %0, %1" : "=3Dw" (output) : "x" (tmp)); #else asm("fcvt %s0, %h1" : "=3Dw" (output) : "w" (input)); #endif --=20 2.45.2