Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp434813lqm; Wed, 1 May 2024 05:30:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGnjPes3BFKDfuYWm5YhUvNnGXuuNQ3TsgJG0V2VKuILPeN3yz6GRkpg55yHkhkmgQnusyjuLDxBDrGNVEO4RD+tyFjIIaUzIM6MW7CA== X-Google-Smtp-Source: AGHT+IGoJOgo0S/OFHbswpRWe0pUwppfD0Ik3/2i04a9ZUtI45zW7J6mIYnfGASfQKY/ajsaj0Dt X-Received: by 2002:a05:622a:188c:b0:43a:67c2:d2ed with SMTP id v12-20020a05622a188c00b0043a67c2d2edmr2387243qtc.12.1714566653265; Wed, 01 May 2024 05:30:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714566653; cv=pass; d=google.com; s=arc-20160816; b=hu2QRYFWFjnQxu3GPfMKuzyVzguW7TRJNFtqvfE6BsQ9NJCwt0oCG8iKrvGRvsOZFD Nbv967I50r0IaA7Z/CPQdJDHzAmNrQZVWvPC+ywG4m0OKybTsBxnzgTRI5wiViUf/uTF ITUxrS2SXRuzH+vyD7Ibke70GNxq/h3RtXFFHq49CsH+iG3gDrYYg2RkDU92O/oj3tkC TUa5v/4c/7/LLGtWn0WpA7cvZ7S9DICS7PDciG990ZnU5R5UBoLI4R+9cdfRW595+/Kh AyANp0P6QVdkLs0EeOiMp5zRmDyFV1PzEYu4Igfw9LzdlitLbY54ZGktq6mh4NtbiDX8 PEoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cMdE5BgqbmQPTpTXVba8JokGFEf95z9LTKpEHLasGwE=; fh=Js7PpvEQ3ReoFQaPq6pHhg2QeHNA1tL1BLhj7+72Abo=; b=FflEbeyJIQgFwGa6YJRpicD0Dm3RW0rpTOwr2iH8j3bf+y8ZsdQjba10RREbpN25Bk bL1jxMB/8lQ0GG81KY9TKUeuMkuFtXuuSFAXGt5FUEgSsbxkET+jDB8T04C3swlyEzRk GB6ZL6UHIwzN5jvPo7VaFmuRmGnBAaQU9jClA5/CTjDNBJ2yiK3tQhdo/ghEJuKfzTLz y8oBY5s028/5AfgrhEfpzT5x85NciOHMNCfYqkQMUImO5XfgvnAwELV8SdPKj3XEzLYQ itzjdAMdU6I0pD8A0R7Dvb0hA/7DVEPtbixSdbRR41xG3jwxmKi305d0VkSGIllUXhCZ Ylig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=n+pu80e4; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-165246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n20-20020a05622a11d400b0043add368de8si7084657qtk.777.2024.05.01.05.30.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=n+pu80e4; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-165246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 04DE01C216E6 for ; Wed, 1 May 2024 12:30:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75E0E12D1F1; Wed, 1 May 2024 12:30:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="n+pu80e4" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5849685948; Wed, 1 May 2024 12:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714566601; cv=none; b=IcIrE5g5kwtae1kV4XsHgFkDDAPPreCo2Q/x2t44pCVzrZfcaUQ35ypUQuiVQWCGypbLmBGw+nokMH4Et1wA5FtRoEbxxipnw6APOF9a6ijgLcan1MHmhgZNyPWW9jc3tTiDQEkCNsKI/Tm2ZcqNLWBWV28XK3jWAPhw8/tg8ME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714566601; c=relaxed/simple; bh=4UmOKDDwYiVFvITkVWtXuu/Yu5UI+nINe1Tzra+7IWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NHa4srUbv2iqxk/CmYJdGILfJHxj6rDFoJz7sIYPp92OmXkxdJ0fjoOKpYPtDDeH3BfjczuhB4kfxTAEREpO4161OdTWehPIX7YevRcPRsU3qvrCbIh4FSBkfJAsag9g6PSSrM++tCCR3DkZ13FdniHAsYYB4SUKgdWKZM5a6Hk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=n+pu80e4; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1714566598; bh=4UmOKDDwYiVFvITkVWtXuu/Yu5UI+nINe1Tzra+7IWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n+pu80e4gzO/Mj1WtE/IT4JMPu+55WwZRjc0uAF4ab59BK8ISfDfzyTk4vRzoDLXW ymO/Q0TJDg8D4ZJPMqz7RrsD6lThsV/3NicMhmG8Ca7HrJqzBU5pqytDHpwy/4ekm/ CXsY3XKZKx+awPvLc3wIGplqcOdHnaItqouESfZeT1yy38l0JaT5PMiUMSqi0uPAUI 1NXtvrlXSPr44s70nY+xFqTGxpkYRh7HB6lsE/CwO/wc75MxkB2rYPV6yXiltKxga/ wwCZ9/IxSTRFs7t3vWXwINiael6O8lnL8u9jr6vMTdtZCOmgPAKmHjLN//O7S6+aF7 S4ZwZqBnXexcA== Received: from localhost.localdomain (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id BEE0E378206E; Wed, 1 May 2024 12:29:49 +0000 (UTC) From: Muhammad Usama Anjum To: Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Muhammad Usama Anjum , Rick Edgecombe , "Mike Rapoport (IBM)" , Ingo Molnar , Dave Hansen , Alexey Dobriyan , Binbin Wu , "Chang S. Bae" , "Kirill A. Shutemov" , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Cc: kernel@collabora.com Subject: [PATCH 6/8] selftests: x86: test_FISTTP: use fisttps instead of ambigous fisttp Date: Wed, 1 May 2024 17:29:16 +0500 Message-Id: <20240501122918.3831734-7-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240501122918.3831734-1-usama.anjum@collabora.com> References: <20240501122918.3831734-1-usama.anjum@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use fisttps instead of fisttp to specify correctly that the output variable is of size short. test_FISTTP.c:28:3: error: ambiguous instructions require an explicit suffix (could be 'fisttps', or 'fisttpl') 28 | " fisttp res16""\n" | ^ :3:2: note: instantiated into assembly here 3 | fisttp res16 | ^ test_FISTTP.c:48:3: error: ambiguous instructions require an explicit suffix (could be 'fisttps', or 'fisttpl') 48 | " fisttp res16""\n" | ^ :3:2: note: instantiated into assembly here 3 | fisttp res16 | ^ test_FISTTP.c:69:3: error: ambiguous instructions require an explicit suffix (could be 'fisttps', or 'fisttpl') 69 | " fisttp res16""\n" | ^ :4:2: note: instantiated into assembly here 4 | fisttp res16 | ^ test_FISTTP.c:91:3: error: ambiguous instructions require an explicit suffix (could be 'fisttps', or 'fisttpl') 91 | " fisttp res16""\n" | ^ :3:2: note: instantiated into assembly here 3 | fisttp res16 | ^ Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/x86/test_FISTTP.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/x86/test_FISTTP.c b/tools/testing/selftests/x86/test_FISTTP.c index 09789c0ce3e9c..b9ae9d8cebcb3 100644 --- a/tools/testing/selftests/x86/test_FISTTP.c +++ b/tools/testing/selftests/x86/test_FISTTP.c @@ -25,7 +25,7 @@ int test(void) feclearexcept(FE_DIVBYZERO|FE_INEXACT|FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW); asm volatile ("\n" " fld1""\n" - " fisttp res16""\n" + " fisttps res16""\n" " fld1""\n" " fisttpl res32""\n" " fld1""\n" @@ -45,7 +45,7 @@ int test(void) feclearexcept(FE_DIVBYZERO|FE_INEXACT|FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW); asm volatile ("\n" " fldpi""\n" - " fisttp res16""\n" + " fisttps res16""\n" " fldpi""\n" " fisttpl res32""\n" " fldpi""\n" @@ -66,7 +66,7 @@ int test(void) asm volatile ("\n" " fldpi""\n" " fchs""\n" - " fisttp res16""\n" + " fisttps res16""\n" " fldpi""\n" " fchs""\n" " fisttpl res32""\n" @@ -88,7 +88,7 @@ int test(void) feclearexcept(FE_DIVBYZERO|FE_INEXACT|FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW); asm volatile ("\n" " fldln2""\n" - " fisttp res16""\n" + " fisttps res16""\n" " fldln2""\n" " fisttpl res32""\n" " fldln2""\n" -- 2.39.2