From patchwork Sun Jun 30 19:00:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 13717292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8461C3065A for ; Sun, 30 Jun 2024 19:02:53 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNznQ-0004sl-6X; Sun, 30 Jun 2024 15:01:08 -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 1sNznN-0004pb-G2 for qemu-devel@nongnu.org; Sun, 30 Jun 2024 15:01:05 -0400 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNznJ-0007X4-J9 for qemu-devel@nongnu.org; Sun, 30 Jun 2024 15:01:05 -0400 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-7021702f3f1so104772a34.0 for ; Sun, 30 Jun 2024 12:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719774059; x=1720378859; 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=ReYEdzUuGbLvXjnnQQZUg5KF5S6M41MyN/EfMs2ZLfY=; b=BlV2ScXR1hCrXCPuqmlW8a5sA3/2E5qQbUFqTt2k1IF1L882ybi2Nn3jUmRMAjdSk7 iW6AfQggEP6QkrxNhWw5Q+5WUEWfcpgKY+3j+ai/kaevYU4HVfmq5pYURcv+y7IHjDAJ hCuXGPHLoq5tj6V/PHc9MmlSu+GaZlBZbG3w3OISy6jeGmBERy4aYG2fJgf/hBtTBfQf BTVPwFoQ/nbatKlmh28ZS03oJjvZRyp2swgyE8uxVuCAF5C7iM3sQGJjEEMpa2BZ4RYA P6hLHchaepl8D9JOHoKVnN6nN1WWuy9XlktCbQEn/b9ndQp3voCSpaeYxS5X0ut6dwvT pEBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719774059; x=1720378859; 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=ReYEdzUuGbLvXjnnQQZUg5KF5S6M41MyN/EfMs2ZLfY=; b=U2trtiXMmW4DvwkymbqxWEBag0j9ssuhgIJxRzvx4C266Rgy3KpyTfUcLgXrt2qj7O jhstjb91c4POBmBRWpZJLXjaYOOHyLRtV9jz958EU1EbjCg7tei7xOfxePEU7UHPv+wg cs4Z6y97egkuiK2TG9FF1VWarDrvZvT22StkCEKewSaJ1tCwtvjUz95E+jTFPUMJsq1L vN29/TRwO+J87wE8JrBMAo5Wp1Bm5CvGTvTQsxHxqKtUAfed9MEcwgOWpTAsqCOt/YAE ps/xuKaSqzMcVy49LXcMq72ZmZr5Q0hQAZwc+HRw6EUIIZ7Bmbd4+uKQRjM6gHev6Rmy 6AUw== X-Gm-Message-State: AOJu0YwYRwprmalmVPlo0U1fBrucOkzzs0wXPAuSpk6xhLO5/HXid2nq UVtwSi0bu6Sn2AKW8ng7zq7UsGnD8mveMle59Rmz7PBBD/ojCddK+cffJOVuhIZjrmGAHgvQvLE 8 X-Google-Smtp-Source: AGHT+IEaFqbdBqYAeeaC/8pCwmgYa3JqNFMA4/gJps8LTFbP6Jci/K2QyrqwuZ4l2EZFl4jjJxweuQ== X-Received: by 2002:a05:6358:b10e:b0:1a5:a3b3:ada7 with SMTP id e5c5f4694b2df-1a6ace912demr431806855d.25.1719774058266; Sun, 30 Jun 2024 12:00:58 -0700 (PDT) Received: from stoup.. (174-21-76-141.tukw.qwest.net. [174.21.76.141]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c91d3e7e4bsm5115641a91.52.2024.06.30.12.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jun 2024 12:00:57 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: akihiko.odaki@daynix.com, alex.bennee@linaro.org, qemu-arm@nongnu.org Subject: [PATCH v4 06/14] tests/tcg/aarch64: Do not use x constraint Date: Sun, 30 Jun 2024 12:00:42 -0700 Message-Id: <20240630190050.160642-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240630190050.160642-1-richard.henderson@linaro.org> References: <20240630190050.160642-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x334.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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Akihiko Odaki clang version 18.1.6 does not support x constraint for AArch64. Use w instead. Signed-off-by: Akihiko Odaki Message-Id: <20240627-tcg-v2-5-1690a813348e@daynix.com> --- tests/tcg/arm/fcvt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c index 7ac47b564e..f631197287 100644 --- a/tests/tcg/arm/fcvt.c +++ b/tests/tcg/arm/fcvt.c @@ -126,7 +126,7 @@ static void convert_single_to_half(void) asm("vcvtb.f16.f32 %0, %1" : "=t" (output) : "x" (input)); #else uint16_t output; - asm("fcvt %h0, %s1" : "=w" (output) : "x" (input)); + asm("fcvt %h0, %s1" : "=w" (output) : "w" (input)); #endif print_half_number(i, output); } @@ -149,7 +149,7 @@ static void convert_single_to_double(void) #if defined(__arm__) asm("vcvt.f64.f32 %P0, %1" : "=w" (output) : "t" (input)); #else - asm("fcvt %d0, %s1" : "=w" (output) : "x" (input)); + asm("fcvt %d0, %s1" : "=w" (output) : "w" (input)); #endif print_double_number(i, output); } @@ -244,7 +244,7 @@ static void convert_double_to_half(void) /* asm("vcvtb.f16.f64 %0, %P1" : "=t" (output) : "x" (input)); */ output = input; #else - asm("fcvt %h0, %d1" : "=w" (output) : "x" (input)); + asm("fcvt %h0, %d1" : "=w" (output) : "w" (input)); #endif print_half_number(i, output); } @@ -267,7 +267,7 @@ static void convert_double_to_single(void) #if defined(__arm__) asm("vcvt.f32.f64 %0, %P1" : "=w" (output) : "x" (input)); #else - asm("fcvt %s0, %d1" : "=w" (output) : "x" (input)); + asm("fcvt %s0, %d1" : "=w" (output) : "w" (input)); #endif print_single_number(i, output); @@ -335,7 +335,7 @@ static void convert_half_to_double(void) /* asm("vcvtb.f64.f16 %P0, %1" : "=w" (output) : "t" (input)); */ output = input; #else - asm("fcvt %d0, %h1" : "=w" (output) : "x" (input)); + asm("fcvt %d0, %h1" : "=w" (output) : "w" (input)); #endif print_double_number(i, output); } @@ -357,7 +357,7 @@ static void convert_half_to_single(void) #if defined(__arm__) asm("vcvtb.f32.f16 %0, %1" : "=w" (output) : "x" ((uint32_t)input)); #else - asm("fcvt %s0, %h1" : "=w" (output) : "x" (input)); + asm("fcvt %s0, %h1" : "=w" (output) : "w" (input)); #endif print_single_number(i, output); } @@ -380,7 +380,7 @@ static void convert_half_to_integer(void) /* asm("vcvt.s32.f16 %0, %1" : "=t" (output) : "t" (input)); v8.2*/ output = input; #else - asm("fcvt %s0, %h1" : "=w" (output) : "x" (input)); + asm("fcvt %s0, %h1" : "=w" (output) : "w" (input)); #endif print_int64(i, output); }