From nobody Mon Feb 9 06:33:14 2026 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=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1663341003; cv=none; d=zohomail.com; s=zohoarc; b=CIAdM9qTPxuZZ50/G+tbWqir7yScn5Yqg0VrMJRkosR3bfRwdKBPVeM8jNftLrnsKtKRjzVmQzf//CMcSOcCZZCepH1s9iTZJVGcH6z9ed6QHcca/RB0WsLJjwVWHys1ODcg56CU8VySYQkt36zK+42IPLpEgdbtq5leQB/jx0c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663341003; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=JKKVwlqC1ay6udOECamg4afpxkjfuGabtGbtRJkR97I=; b=U76v/fytP036iKIlgT4vDDDuZ4don3CICP+BZdCIx1VqOoQXcAuBc2VeE8nYFAJcn8Lu7mgu3guOz79AtVpUzi+qnkK2Z63iPDFy3/pHFKEFIMIB/tqbq7QLM/1bsluMallwt1BRQk76y2Uzl0IvgvZcNE3c2VAshrX88Sk8wLA= 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 1663341003953155.15453337267593; Fri, 16 Sep 2022 08:10:03 -0700 (PDT) Received: from localhost ([::1]:39416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZCyg-0003du-BG for importer@patchew.org; Fri, 16 Sep 2022 11:10:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZCvN-0000ft-VR for qemu-devel@nongnu.org; Fri, 16 Sep 2022 11:06:38 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]:37826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZCvL-0004Ry-Bw for qemu-devel@nongnu.org; Fri, 16 Sep 2022 11:06:37 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28GE3IiL002546 for ; Fri, 16 Sep 2022 15:06:31 GMT Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jm9m1bcc2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 16 Sep 2022 15:06:31 +0000 Received: from pps.filterd (NALASPPMTA04.qualcomm.com [127.0.0.1]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 28GF2bZ4006090 for ; Fri, 16 Sep 2022 15:06:30 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA04.qualcomm.com (PPS) with ESMTPS id 3jk8x6ttj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 16 Sep 2022 15:06:30 +0000 Received: from NALASPPMTA04.qualcomm.com (NALASPPMTA04.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28GF4YUM009305 for ; Fri, 16 Sep 2022 15:06:30 GMT Received: from hu-devc-sd-u20-a-1.qualcomm.com (hu-mathbern-lv.qualcomm.com [10.47.235.147]) by NALASPPMTA04.qualcomm.com (PPS) with ESMTPS id 28GF6T4m011151 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Sep 2022 15:06:29 +0000 Received: by hu-devc-sd-u20-a-1.qualcomm.com (Postfix, from userid 4229910) id 843C54D3C; Fri, 16 Sep 2022 12:06:29 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=qcppdkim1; bh=JKKVwlqC1ay6udOECamg4afpxkjfuGabtGbtRJkR97I=; b=F6Y+xkFjDil43kZ3RxDV7owlEh5bAK8hKjQyRzyfP1hTK81d3r0dwDFR8sqXsmpfg/Os 0yKeawxWrgzREUwjZtorbxfi00tR7d7M/D76nJcSbPZnR7cU2hUl11Q68JtzAtwI2Nk0 V8Oa+KXdlB1FnHt7zSY7jDIZdDObz7eiSnkeU6cVDlc+lggTIMRvWSbPjvVmJLMluWWp uRFv3LuvNI2xq+6MpmseB+TqG7F1P98e1slt5k78vzkbxrabXHJbQlYPozh4gVDZBKpj AuLi/l/pGAwXsZc3wpi6d5Lb/GNbkIiLkGunHmKjQhtawyVizNNU6N9i72jWtXa7s3t0 Ig== From: Matheus Tavares Bernardino To: qemu-devel@nongnu.org Cc: tsimpson@quicinc.com, bcain@quicinc.com Subject: [PATCH] Hexagon (tests/tcg/hexagon): add fmin/fmax tests for signed zero Date: Fri, 16 Sep 2022 12:06:27 -0300 Message-Id: <1dca69ceb766924b7664b5b78ce930e3a9abe7dc.1663340756.git.quic_mathbern@quicinc.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: HOGYS1sm22BE3RJ4lUmRGHNX8sRZQ7Cc X-Proofpoint-GUID: HOGYS1sm22BE3RJ4lUmRGHNX8sRZQ7Cc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-16_09,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxlogscore=525 spamscore=0 mlxscore=0 phishscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209160112 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=205.220.168.131; envelope-from=mathbern@qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, 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" X-ZohoMail-DKIM: pass (identity @quicinc.com) X-ZM-MESSAGEID: 1663341004882100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Matheus Tavares Bernardino Reviewed-by: Taylor Simpson Tested-by: Taylor Simpson --- tests/tcg/hexagon/usr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/tcg/hexagon/usr.c b/tests/tcg/hexagon/usr.c index a531511cec..fb4514989c 100644 --- a/tests/tcg/hexagon/usr.c +++ b/tests/tcg/hexagon/usr.c @@ -86,6 +86,7 @@ const uint32_t SF_QNaN_neg =3D 0xffc00000; const uint32_t SF_SNaN_neg =3D 0xffb00000; const uint32_t SF_HEX_NaN =3D 0xffffffff; const uint32_t SF_zero =3D 0x00000000; +const uint32_t SF_zero_neg =3D 0x80000000; const uint32_t SF_one =3D 0x3f800000; const uint32_t SF_one_recip =3D 0x3f7f0001; /* 0.9960... */ const uint32_t SF_one_invsqrta =3D 0x3f7f0000; /* 0.99609375 */ @@ -100,6 +101,7 @@ const uint64_t DF_QNaN_neg =3D 0xfff80000000000= 00ULL; const uint64_t DF_SNaN_neg =3D 0xfff7000000000000ULL; const uint64_t DF_HEX_NaN =3D 0xffffffffffffffffULL; const uint64_t DF_zero =3D 0x0000000000000000ULL; +const uint64_t DF_zero_neg =3D 0x8000000000000000ULL; const uint64_t DF_any =3D 0x3f80000000000000ULL; const uint64_t DF_one =3D 0x3ff0000000000000ULL; const uint64_t DF_one_hh =3D 0x3ff001ff80000000ULL; /* 1.000= 48... */ @@ -933,6 +935,8 @@ int main() TEST_R_OP_RR(sfmin, SF_QNaN, SF_one, SF_one, USR_CL= EAR); TEST_R_OP_RR(sfmin, SF_SNaN, SF_QNaN, SF_HEX_NaN, USR_FP= INVF); TEST_R_OP_RR(sfmin, SF_QNaN, SF_SNaN, SF_HEX_NaN, USR_FP= INVF); + TEST_R_OP_RR(sfmin, SF_zero, SF_zero_neg, SF_zero_neg, USR_CL= EAR); + TEST_R_OP_RR(sfmin, SF_zero_neg, SF_zero, SF_zero_neg, USR_CL= EAR); =20 TEST_R_OP_RR(sfmax, SF_one, SF_small_neg, SF_one, USR_CL= EAR); TEST_R_OP_RR(sfmax, SF_one, SF_SNaN, SF_one, USR_FP= INVF); @@ -941,6 +945,8 @@ int main() TEST_R_OP_RR(sfmax, SF_QNaN, SF_one, SF_one, USR_CL= EAR); TEST_R_OP_RR(sfmax, SF_SNaN, SF_QNaN, SF_HEX_NaN, USR_FP= INVF); TEST_R_OP_RR(sfmax, SF_QNaN, SF_SNaN, SF_HEX_NaN, USR_FP= INVF); + TEST_R_OP_RR(sfmax, SF_zero, SF_zero_neg, SF_zero, USR_CL= EAR); + TEST_R_OP_RR(sfmax, SF_zero_neg, SF_zero, SF_zero, USR_CL= EAR); =20 TEST_R_OP_RR(sfadd, SF_one, SF_QNaN, SF_HEX_NaN, USR_CL= EAR); TEST_R_OP_RR(sfadd, SF_one, SF_SNaN, SF_HEX_NaN, USR_FP= INVF); @@ -1003,6 +1009,8 @@ int main() TEST_P_OP_PP(dfmin, DF_QNaN, DF_any, DF_any, USR_CL= EAR); TEST_P_OP_PP(dfmin, DF_SNaN, DF_QNaN, DF_HEX_NaN, USR_FP= INVF); TEST_P_OP_PP(dfmin, DF_QNaN, DF_SNaN, DF_HEX_NaN, USR_FP= INVF); + TEST_P_OP_PP(dfmin, DF_zero, DF_zero_neg, DF_zero_neg, USR_CL= EAR); + TEST_P_OP_PP(dfmin, DF_zero_neg, DF_zero, DF_zero_neg, USR_CL= EAR); =20 TEST_P_OP_PP(dfmax, DF_any, DF_small_neg, DF_any, USR_CL= EAR); TEST_P_OP_PP(dfmax, DF_any, DF_SNaN, DF_any, USR_FP= INVF); @@ -1011,6 +1019,8 @@ int main() TEST_P_OP_PP(dfmax, DF_QNaN, DF_any, DF_any, USR_CL= EAR); TEST_P_OP_PP(dfmax, DF_SNaN, DF_QNaN, DF_HEX_NaN, USR_FP= INVF); TEST_P_OP_PP(dfmax, DF_QNaN, DF_SNaN, DF_HEX_NaN, USR_FP= INVF); + TEST_P_OP_PP(dfmax, DF_zero, DF_zero_neg, DF_zero, USR_CL= EAR); + TEST_P_OP_PP(dfmax, DF_zero_neg, DF_zero, DF_zero, USR_CL= EAR); =20 TEST_XP_OP_PP(dfmpyhh, DF_one, DF_one, DF_one, DF_one_hh, USR_CL= EAR); TEST_XP_OP_PP(dfmpyhh, DF_zero, DF_any, DF_QNaN, DF_HEX_NaN, USR_CL= EAR); --=20 2.37.2