From nobody Mon May 20 13:24:58 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; dmarc=pass(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1685454368; cv=none; d=zohomail.com; s=zohoarc; b=SK1emVCK9A2D/1YwjVe6C7VbFHehzzv44dsREPHU71/4n5BCga9lGx+R8WtJNGoyxMC+M0RmFcYi6DZh7biULaXfci4ToGdXKL1CLRPq4HpC9+ALbPvhmYVkg1ZSTWUqFkUCDDkL8VYklXa+Mlsyv4c5G0l5JFXARSCgpYndcIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685454368; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WuhrqVXMCKbx60pzUKS+XDlVz++v0zUXHT9fTDIlHy0=; b=jjiSIXwKnbeOy+3CSqi4JcY/7/wvmTJGffnQas7Nw7wYAabj4BcTe/PjM1Oel0A5KCVDI9vS2QF9jZfytHW2Z9uBgNcDBtd05MNF4dNhsRdTg57DGLyAHB1xMzW7Lkf1OIoaam1gNEef6SqSkJKVVtTopPM5Z88Rxmwbz8uXaYg= 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 1685454368768749.1858347409886; Tue, 30 May 2023 06:46:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3zf4-0005x8-C2; Tue, 30 May 2023 09:45:18 -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 1q3zf3-0005vS-ED for qemu-devel@nongnu.org; Tue, 30 May 2023 09:45:17 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3zf1-00083u-99 for qemu-devel@nongnu.org; Tue, 30 May 2023 09:45:17 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34U6qBfR019831 for ; Tue, 30 May 2023 13:45:12 GMT Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qw03q1s4r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 May 2023 13:45:11 +0000 Received: from pps.filterd (NALASPPMTA05.qualcomm.com [127.0.0.1]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 34UDjA70028148 for ; Tue, 30 May 2023 13:45:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA05.qualcomm.com (PPS) with ESMTPS id 3quaxkrtr1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 May 2023 13:45:10 +0000 Received: from NALASPPMTA05.qualcomm.com (NALASPPMTA05.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34UDjAH8028138 for ; Tue, 30 May 2023 13:45:10 GMT Received: from hu-devc-sd-u20-a-1.qualcomm.com (hu-mathbern-lv.qualcomm.com [10.47.235.147]) by NALASPPMTA05.qualcomm.com (PPS) with ESMTPS id 34UDj9qZ028126 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 13:45:10 +0000 Received: by hu-devc-sd-u20-a-1.qualcomm.com (Postfix, from userid 4229910) id CE70E7587; Tue, 30 May 2023 10:45:09 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=qcppdkim1; bh=WuhrqVXMCKbx60pzUKS+XDlVz++v0zUXHT9fTDIlHy0=; b=hR+SDPSHjOlXqJjBviVT6eaCAWQd4lN1In7U5xJMGqvUN2aBDyF9EIG3iqnvC9hmDx00 SGKTy87tHCYLYbbsF+MQZTXDVTkYmHxqRuJoGb5M2ZClqD/QJVOs8j/yZbhOz39yDeEu 0UHwYZwKo3B6Xo589mpLnlnklD+kvkUu4XNpvYTxNUj5iP21k0Y4pncardXhFSho5igI VMq7WoNviNjaELjsym64tFcsAQ8ka3fzj+HJvMKeRVwljaBdxVjJrtl0wUA3M6IS809Y ezOF5W9d2iMjPmoXSD2/ehZExAhYbM3uWxR6zp36kGgpoYQtE1fxbexMP+8P18G/bSHm 9A== From: Matheus Tavares Bernardino To: qemu-devel@nongnu.org Cc: tsimpson@quicinc.com, bcain@quicinc.com, quic_mliebel@quicinc.com Subject: [PATCH 1/2] Hexagon (hvx_misc test): fix uninitialized regs at test_load_tmp2 Date: Tue, 30 May 2023 10:45:07 -0300 Message-Id: X-Mailer: git-send-email 2.37.2 In-Reply-To: References: 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-GUID: VKDQg73NKL5gMnE_AHrUBvxLt2jyqtgK X-Proofpoint-ORIG-GUID: VKDQg73NKL5gMnE_AHrUBvxLt2jyqtgK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_10,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 impostorscore=0 clxscore=1015 mlxlogscore=888 adultscore=0 phishscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300111 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.180.131; envelope-from=mathbern@qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 @quicinc.com) X-ZM-MESSAGEID: 1685454370733100003 Content-Type: text/plain; charset="utf-8" From: Marco Liebel This test case was using some vector registers which were not properly initialized. Signed-off-by: Marco Liebel Signed-off-by: Matheus Tavares Bernardino --- tests/tcg/hexagon/hvx_misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/tcg/hexagon/hvx_misc.c b/tests/tcg/hexagon/hvx_misc.c index b45170acd1..b56b8f9cc5 100644 --- a/tests/tcg/hexagon/hvx_misc.c +++ b/tests/tcg/hexagon/hvx_misc.c @@ -66,6 +66,11 @@ static void test_load_tmp2(void) void *pout1 =3D &output[1]; =20 asm volatile( + "r0 =3D #0x0\n\t" + "v14 =3D vsplat(r0)\n\t" + "v15 =3D vsplat(r0)\n\t" + "v24 =3D vsplat(r0)\n\t" + "v25 =3D vsplat(r0)\n\t" "r0 =3D #0x03030303\n\t" "v16 =3D vsplat(r0)\n\t" "r0 =3D #0x04040404\n\t" @@ -79,7 +84,7 @@ static void test_load_tmp2(void) "vmem(%0 + #0) =3D v24\n\t" "vmem(%1 + #0) =3D v25\n\t" : : "r"(pout0), "r"(pout1) - : "r0", "v16", "v18", "v21", "v24", "v25", "memory" + : "r0", "v14", "v15", "v16", "v18", "v21", "v24", "v25", "memory" ); =20 for (int i =3D 0; i < MAX_VEC_SIZE_BYTES / 4; ++i) { --=20 2.37.2 From nobody Mon May 20 13:24:58 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; dmarc=pass(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1685454334; cv=none; d=zohomail.com; s=zohoarc; b=ZUs77sHcpundXfNg2ZLwApPkgl+jqJz35/iEmf9XasQ+dJy0IlM7EymGU0F7UdW6bueenCxKO241KnMtXrqXNsqJINyh+KKHL+XwHW5P8uHyy4umVyJDs3LEon2d/YQWBosz+rsAHaBFx1guZZl97c1IBcp+dGNGilL0DkiZNkE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685454334; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wcwnrfUmA4AI9aeBkWgPB5bEUdSMWUfx5QoNfvcrYA8=; b=XNKWqO3glKkE7D/qtPO1UDujPOKCxk/f561lyieNTlfsYhWg7HQUCHvLBXp7U7Uj58i1QYfb6HPrNip6Wgrdg1l3rSgCUBB17O2I/rBLlzAbaltw50uerIkPsm21TiQPQF0rnM4+kl4Nx0jIZ4uzw4LHv5Z9QMHcucP4OTxH7jI= 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 168545433459259.68725120603983; Tue, 30 May 2023 06:45:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3zf5-0005y3-7S; Tue, 30 May 2023 09:45:19 -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 1q3zf3-0005vU-Ej for qemu-devel@nongnu.org; Tue, 30 May 2023 09:45:17 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3zf1-00083v-1f for qemu-devel@nongnu.org; Tue, 30 May 2023 09:45:17 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UCUAo0031034 for ; Tue, 30 May 2023 13:45:12 GMT Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qwava8yvx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 May 2023 13:45:11 +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 34UDjA1M018925 for ; Tue, 30 May 2023 13:45:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA04.qualcomm.com (PPS) with ESMTPS id 3quaxkrfxd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 30 May 2023 13:45:10 +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 34UDjAqQ018912 for ; Tue, 30 May 2023 13:45:10 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 34UDj9lF018892 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 13:45:10 +0000 Received: by hu-devc-sd-u20-a-1.qualcomm.com (Postfix, from userid 4229910) id DC61E7589; Tue, 30 May 2023 10:45:09 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=qcppdkim1; bh=wcwnrfUmA4AI9aeBkWgPB5bEUdSMWUfx5QoNfvcrYA8=; b=L8YtpztKto1kZ3aH/JtC3fuPSyMwTtTnOQyKlHYaXam90o2fpIC8TmTP+9p/x5aZd7FI Z6oHv/2UGMOEbh4yo28H4r4FjeO76DBUcS9fr1UPxbX0aWu4r2ASV0RR/Le7qwG4+ldR fRuXs7TyekWfHbC+gjBQi+a3nlRiZIBigZB0lN1tCIJ4So4sZbspXhy5cXGysVMLkeqv OxSRzbncd+HBLxmB+FwmncXUKfTMw//S7gS5WwASTTG9+6G4ojvYWDYOfJf6HGv6IfNW u1DqZruqJoZCREeLmuqth/w1w9wG0fwJEOwu0SXW3TwUUbiKi5k7IWA+jO5//Lkylc3u Tw== From: Matheus Tavares Bernardino To: qemu-devel@nongnu.org Cc: tsimpson@quicinc.com, bcain@quicinc.com, quic_mliebel@quicinc.com Subject: [PATCH 2/2] Hexagon (tests/.../hex_test.h): use portable printf formats Date: Tue, 30 May 2023 10:45:08 -0300 Message-Id: X-Mailer: git-send-email 2.37.2 In-Reply-To: References: 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-GUID: QJ2_ebffPAfnsAQyKKdGkgpgQU6h3TNd X-Proofpoint-ORIG-GUID: QJ2_ebffPAfnsAQyKKdGkgpgQU6h3TNd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_10,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 phishscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxlogscore=386 impostorscore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300111 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.180.131; envelope-from=mathbern@qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 @quicinc.com) X-ZM-MESSAGEID: 1685454335804100002 Content-Type: text/plain; charset="utf-8" This fixes compiler messages like "warning: format specifies type 'unsigned int' but the argument has type 'uint32_t' (aka 'unsigned long') [-Wformat]". Signed-off-by: Matheus Tavares Bernardino --- tests/tcg/hexagon/hex_test.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/tcg/hexagon/hex_test.h b/tests/tcg/hexagon/hex_test.h index cfed06a58b..fe253b56e5 100644 --- a/tests/tcg/hexagon/hex_test.h +++ b/tests/tcg/hexagon/hex_test.h @@ -19,10 +19,13 @@ #ifndef HEX_TEST_H #define HEX_TEST_H =20 +#include + static inline void __check32(int line, uint32_t val, uint32_t expect) { if (val !=3D expect) { - printf("ERROR at line %d: 0x%08x !=3D 0x%08x\n", line, val, expect= ); + printf("ERROR at line %d: 0x%08"PRIx32" !=3D 0x%08"PRIx32"\n", + line, val, expect); err++; } } @@ -32,7 +35,8 @@ static inline void __check32(int line, uint32_t val, uint= 32_t expect) static inline void __check64(int line, uint64_t val, uint64_t expect) { if (val !=3D expect) { - printf("ERROR at line %d: 0x%016llx !=3D 0x%016llx\n", line, val, = expect); + printf("ERROR at line %d: 0x%016"PRIx64" !=3D 0x%016"PRIx64"\n", + line, val, expect); err++; } } @@ -62,7 +66,8 @@ static inline void __checkp(int line, void *p, void *expe= ct) static inline void __check32_ne(int line, uint32_t val, uint32_t expect) { if (val =3D=3D expect) { - printf("ERROR at line %d: 0x%08x =3D=3D 0x%08x\n", line, val, expe= ct); + printf("ERROR at line %d: 0x%08"PRIx32" =3D=3D 0x%08"PRIx32"\n", + line, val, expect); err++; } } @@ -72,7 +77,8 @@ static inline void __check32_ne(int line, uint32_t val, u= int32_t expect) static inline void __check64_ne(int line, uint64_t val, uint64_t expect) { if (val =3D=3D expect) { - printf("ERROR at line %d: 0x%016llx =3D=3D 0x%016llx\n", line, val= , expect); + printf("ERROR at line %d: 0x%016"PRIx64" =3D=3D 0x%016"PRIx64"\n", + line, val, expect); err++; } } --=20 2.37.2