From nobody Mon Nov 23 04:44:05 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=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1792422850; cv=none; d=zohomail.com; s=zohoarc; b=gENk7cvjGU5QppSfSHseCFCJ2rHNNwS3DO2GthsiPI/eGhJDCJzQg+7HDjnRHhEsVPNzenN0Qu3KxU60Qlq43G8s7G0axVMXUARrWiQuQku0Q/11+wI1rjo3aPnN4M6WF2LsA5D07BhJeVso1AEeeZ5dPjNjhwoWdSvackmFbKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792422850; h=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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=VS0DLcY/4N97K+zZmiS08wE3tvxfgAgaCzjKdjWi3LQ=; b=COrgcHEJBm4RIH78A7apxNDea58NLezs1fvVje9Pu59QyO2SfS1CF9VEcgKkUxeNcuNCYLM982RIpN6B3yk1VLKRd7kuV7MMAvtRepwemsCd5OZU1qA3RVpgbHHPBQ0HrI6ux5l+11YCqrBHbtMB2aAPZMZxWeSOMJ/53LSk6WQ= 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792422850371755.0599663186944; Mon, 19 Oct 2026 08:14:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIp2x-0006pV-BM; Mon, 19 Oct 2026 11:13:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2d-0006ht-Ru; Mon, 19 Oct 2026 11:12:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2a-0002W2-AV; Mon, 19 Oct 2026 11:12:47 -0400 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JEEKZp2316702; Mon, 19 Oct 2026 15:12:41 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4hc0ptky6w-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:40 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 69JE55k74174428; Mon, 19 Oct 2026 15:12:39 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4hcmbjx7d0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:39 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 69JFCZkT17629556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Oct 2026 15:12:35 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 429B22004E; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1748E2004B; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav07.fra02v.mail.ibm.com (Postfix) with SMTP; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 4958) id F28A9160AD8; Mon, 19 Oct 2026 17:12:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=VS0DLcY/4N97K+zZm iS08wE3tvxfgAgaCzjKdjWi3LQ=; b=Zs4377ory6WzPwIZ57wKh5gLqC3CK2nl8 HZApfNFPLjuIl2B2ibjvrK52EF0s0kg84a5qAxuufYd9iKEn0Ah0jhl39s/RX5N4 NYFWka+c/zer3mcYiee3/KmbbFPeycy3g0uvRxHxjNHjCJt+7ySKsiU2Ke3W6VK2 frTvD8FYkNtM7GwcjdsZsXcNyZHwE866KNQ5pm9tAPfaOo2ljv2Q+2s0Mn8QTtmB TTFFQp61dZo1W76jCYPqrAkm6rk7dwaepJtlkPk8lDsvJW62NSCZBshP5f5g7r+y +0/d/2YXAO9Z7A3KL0RHFQzeNmmFd+MkpIjZZICEo+0rbPAjRIHNg== From: Eric Farman To: Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , "Michael S . Tsirkin" , Paolo Bonzini , Richard Henderson Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Matthew Rosato , Eric Farman Subject: [PATCH v1 1/4] hw/i386: ELF endianness fixes Date: Mon, 19 Oct 2026 17:12:28 +0200 Message-ID: <20261019151233.230172-2-farman@linux.ibm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261019151233.230172-1-farman@linux.ibm.com> References: <20261019151233.230172-1-farman@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX+vLbAUhQ/zE3 wwIzIROoI66gD2zvnXoqRJTmhZLdcwqAaa8h8RwxtiFIESl9IXcgE2PZUPlDbaU+GVd2XDbeoA5 SrGR8GfUiLsmo+fiJeyL3gu/03lpvs+hPoXSxJOV1w/TbgfW43p6sTdHaGFn0GnGAo9EnzXPIxB jNLqsz42VdxGYDrCxVYyvBFJB975G7ymILmkUDXHuIQoKj67xbgind41hXH/a3qR4h3pQNYaGQE wwXq1VLGvydsu+w3RaKYD7T6XqQoHt5jNCS6rEtq49iFfWhGl7uZtdWWceljcApfixtkLnRM8Ev 6fb4GY3vNuHZq4p1S10eApUDWkOc6Z9dvhcu9j76SaKm1Pyv3NXshw+OPNtNN9Nwa4zTiK8r8GN 4l86n0uDkG8K+1YsjFYCvsKaXRA1tO1Yg9nrFQ2haCC5U8KqMN9MFZpRqjvcEi7dPv66AcURZ7N KLK07MU+aIdrqUDMlCQ== X-Authority-Analysis: v=2.4 cv=WNvqzXsR c=1 sm=1 tr=0 ts=6ad63369 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=VnNF1IyMAAAA:8 a=MllmpHxVhdK4irJ3L0sA:9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX/xYltkNBkn5A SUc71DsSVZ4jEImXBfYCEfHbYwuu5e5WzJdGrYZRvnliGKwfiEHAOB+t3mV+0D7uI5hYULTETTN uau8xPAZ/1tbpxFe+2LGyL18fnDg5Oc= X-Proofpoint-GUID: xvzm2eZbAz5t3iIsVv-g9mKsDyxnaqfv X-Proofpoint-ORIG-GUID: ZsSsmfOook0Wda2G3quyP87lFZ7iKDA- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_04,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 spamscore=0 impostorscore=0 phishscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190058 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=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.156.1; envelope-from=farman@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: qemu development 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 @ibm.com) X-ZM-MESSAGEID: 1792422851864158500 Content-Type: text/plain; charset="utf-8" Running make check-tcg-x86_64 on a big-endian host (e.g., s390x) fails due to problems reading/parsing the ELF data: qemu-system-x86_64: Error loading uncompressed kernel without PVH ELF Note There already exists logic in include/hw/elf_ops.h.inc to handle byte-swaps where necessary, but it does not perform this logic for ELF notes itself. Fixing that improves matters, but yields other errors: most of the tests timeout while some generate confusing assertions. Both appear to be related to the data addresses in those notes, which are incorrect when running on a big-endian host. Adding tswap wrappers, which will conditionally swap if the host and target endianness don't match, fixes that such that check-tcg-x86_64 runs cleanly on an s390 host. Signed-off-by: Eric Farman Acked-by: Pierrick Bouvier --- hw/i386/x86-common.c | 6 ++++-- include/hw/elf_ops.h.inc | 20 ++++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/hw/i386/x86-common.c b/hw/i386/x86-common.c index fa18bf1aece..dcd4fa8eb79 100644 --- a/hw/i386/x86-common.c +++ b/hw/i386/x86-common.c @@ -45,6 +45,8 @@ #include "kvm/kvm_i386.h" #include "kvm/tdx.h" =20 +#include "exec/tswap.h" + #ifdef CONFIG_XEN_EMU #include "hw/xen/xen.h" #include "hw/i386/kvm/xen_evtchn.h" @@ -573,7 +575,7 @@ static uint64_t read_pvh_start_addr(void *arg1, void *a= rg2, bool is64) ((void *)nhdr64) + nhdr_size64 + QEMU_ALIGN_UP(nhdr_namesz, phdr_align); =20 - pvh_start_addr =3D *elf_note_data_addr; + pvh_start_addr =3D tswap64(*elf_note_data_addr); } else { struct elf32_note *nhdr32 =3D (struct elf32_note *)arg1; uint32_t nhdr_size32 =3D sizeof(struct elf32_note); @@ -584,7 +586,7 @@ static uint64_t read_pvh_start_addr(void *arg1, void *a= rg2, bool is64) ((void *)nhdr32) + nhdr_size32 + QEMU_ALIGN_UP(nhdr_namesz, phdr_align); =20 - pvh_start_addr =3D *(uint32_t *)elf_note_data_addr; + pvh_start_addr =3D tswap32(*(uint32_t *)elf_note_data_addr); } =20 return pvh_start_addr; diff --git a/include/hw/elf_ops.h.inc b/include/hw/elf_ops.h.inc index 044e72de2a2..b4fc0b146f0 100644 --- a/include/hw/elf_ops.h.inc +++ b/include/hw/elf_ops.h.inc @@ -56,6 +56,13 @@ static void glue(bswap_rela, SZ)(struct elf_rela *rela) bswapSZs((elf_word *)&rela->r_addend); } =20 +static void glue(bswap_note, SZ)(struct elf_note *note) +{ + bswap32s(¬e->n_namesz); + bswap32s(¬e->n_descsz); + bswap32s(¬e->n_type); +} + static struct elf_shdr *glue(find_section, SZ)(struct elf_shdr *shdr_table, int n, int type) { @@ -275,7 +282,8 @@ fail: static struct elf_note *glue(get_elf_note_type, SZ)(struct elf_note *nhdr, elf_word note_size, elf_word phdr_align, - elf_word elf_note_type) + elf_word elf_note_type, + int must_swab) { elf_word nhdr_size =3D sizeof(struct elf_note); elf_word elf_note_entry_offset =3D 0; @@ -287,6 +295,10 @@ static struct elf_note *glue(get_elf_note_type, SZ)(st= ruct elf_note *nhdr, return NULL; } =20 + if (must_swab) { + glue(bswap_note, SZ)(nhdr); + } + note_type =3D nhdr->n_type; while (note_type !=3D elf_note_type) { nhdr_namesz =3D nhdr->n_namesz; @@ -306,6 +318,9 @@ static struct elf_note *glue(get_elf_note_type, SZ)(str= uct elf_note *nhdr, =20 /* skip to the next ELF Note entry */ nhdr =3D (void *)nhdr + elf_note_entry_offset; + if (must_swab) { + glue(bswap_note, SZ)(nhdr); + } note_type =3D nhdr->n_type; } =20 @@ -608,7 +623,8 @@ static ssize_t glue(load_elf, SZ)(const char *name, int= fd, nhdr =3D (struct elf_note *)data; assert(translate_opaque !=3D NULL); nhdr =3D glue(get_elf_note_type, SZ)(nhdr, file_size, ph->p_al= ign, - *(uint64_t *)translate_opaq= ue); + *(uint64_t *)translate_opaq= ue, + must_swab); if (nhdr !=3D NULL) { elf_note_fn((void *)nhdr, (void *)&ph->p_align, SZ =3D=3D = 64); } --=20 2.53.0 From nobody Mon Nov 23 04:44:05 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=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1792422829; cv=none; d=zohomail.com; s=zohoarc; b=DDgSsveKrPwXXbcskFOIHFvjAR7BVXqFVADQQB9mesmuKbVjuJcauV2EBCzKwAvBOUT+i+TjLfnrGqsXi2TmUgFYljFZHr08SVXDjVv3HgyNzldCtxTQW5Nzfpg2MKFRL24RHUaNZKWmbMJmkidBfKQcCGE05DT1MwCZfNSSsx8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792422829; h=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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xQft5iqzlmT7Mv8LJ6RlpBXtMJF+hH9jXOxBfxTYmBk=; b=iXKVXVhGVH++OU/4zJ5JsHhraRysF0I3+Apg8olIxdRL0iu8WTMtVeD6FsFwDnvboERNP2zxGUyKCpbSzkVvZcwwOLSjfGQQ77KltMjgpwoFUs4ionTIWCfMYsyU5gmtjDstDq0xtuYb9VUqsU/CFeiNkEuAAqKN1HE6TgidAgo= 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179242282925365.54802127802031; Mon, 19 Oct 2026 08:13:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIp30-0006rP-OF; Mon, 19 Oct 2026 11:13:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2d-0006hf-Lm; Mon, 19 Oct 2026 11:12:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2a-0002W1-Ab; Mon, 19 Oct 2026 11:12:47 -0400 Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JEE3qA4127704; Mon, 19 Oct 2026 15:12:41 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4hc0h5byk9-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:40 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 69JE4sqC3023642; Mon, 19 Oct 2026 15:12:39 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4hcnjgx1ym-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:39 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 69JFCZ7X16384350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Oct 2026 15:12:35 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 421E92004D; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1710920040; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav07.fra02v.mail.ibm.com (Postfix) with SMTP; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 4958) id 007EB160E0B; Mon, 19 Oct 2026 17:12:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=xQft5iqzlmT7Mv8LJ 6RlpBXtMJF+hH9jXOxBfxTYmBk=; b=VmD6j97rxHrdX/bjKSPmuM3Cb5keQ5gwC l+fNtwFENZT+OU261dbH/7b48/tKI71XdMSTG5hojL7sQdiudcTyh9YuNaeZwl19 a63jK47T7pSRO6Y4OpHanzdB+42GnxJO3kRw4fXCbIPWs1/DI4TouOf4Du1NpmBW Akm3qp6Rm5Kdd7H02D4LGBep0EgrRRUw7E6HnDBmxBe+ppwPN6jAbb1+6J6MTCdb J48/wtPCgM+0kF64uD4y19vaSu3Cle9ihUjCX8sE3SBDr6nGJBJQpuNdYWqk2HmY WPZ1t2fQU6kf3l8opbtPnPCoJ5tB0zrn2wTUElZSToEQcYk+slt4w== From: Eric Farman To: Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , "Michael S . Tsirkin" , Paolo Bonzini , Richard Henderson Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Matthew Rosato , Eric Farman Subject: [PATCH v1 2/4] tests/tcg/ppc64: Skip float_conv* tests Date: Mon, 19 Oct 2026 17:12:29 +0200 Message-ID: <20261019151233.230172-3-farman@linux.ibm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261019151233.230172-1-farman@linux.ibm.com> References: <20261019151233.230172-1-farman@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX1t1JKDFH6Zpp Pz5bvv4TohpMTT6ree4Oq2JBA5+aRoV63SPMq47LDTyz88fy/iz6uLx5mpLiSS4JbS2MFbbOUcG uwif+J7UBWD15OvmBhr9DAkgVJbNd38= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX0l9mfZ5CWDL3 4+E2NpaRbdJ9BLDDY2fVegq8S4hSmUiHfCyQ36Px8Xfz0ypPrzubcOPzWfFt0mKij5ngkjaFLID 2tsRXwNva2sdMzgoUwTqvNdLQhAjD9pQLdy0HuyDAVmRbWmVN8V8u2yh2mhStyZPNc2INGj7Dag P5speugtgy/f+DbPtxUQkmDkwJ68Cvzjc63ayfQavIWa1i3HZuaMhGCY+tJJg6raMe2MTn+o4bF hzcM6sXIUij3XyYzoDt7lPmjjJARLxtFnKdcCg0owZt64YYGLC891hqGzwEHRl7kxfj97mqZlrK tB1Ig0TDy1DxFUOqhh8HGb4LN3Gq5oXvQP7IvV2vU+cPPLPJUA22wk1vKqa2qexC2wsZB/MUh8h N/ZEDQkMRtMSPOGVYDlB2G7RPoohPObiEvVNIgTRj08lDuUywZYUgW8OdriC0nJGLCADC1kuCi7 0ZAC7cm09MqU5APczkA== X-Proofpoint-ORIG-GUID: ghb3kJa92qKtaZtWfQGowhO4V4KTxdzH X-Proofpoint-GUID: BtdIZzPwzdVEbqb46jiKrQTKrvWUa77A X-Authority-Analysis: v=2.4 cv=KujYSmWN c=1 sm=1 tr=0 ts=6ad63368 cx=c_pps a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=iQ6ETzBq9ecOQQE5vZCe:22 a=VnNF1IyMAAAA:8 a=TYl8v_mP55eIv-gI3KwA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_04,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190058 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=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.156.1; envelope-from=farman@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: qemu development 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 @ibm.com) X-ZM-MESSAGEID: 1792422831481158502 Content-Type: text/plain; charset="utf-8" There is an oddity that turns up with the float_convd and float_convs tests, when running from different toolchains. As one example, the expectation at the start of tests/tcg/ppc64/float_conv*.ref is: ### Rounding to nearest from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) to uint64: -9223372036854775808 (INVALID) But, other hosts offer a different response, e.g., this debian guest on a laptop: ### Rounding to nearest from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) to uint64: 0 (INVALID) The explanation seems to be a behavior change when compiling to different versions of power hardware. Disable this for the time being, and it can be added back in manually with the correct responses. Signed-off-by: Eric Farman --- tests/tcg/ppc64/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tcg/ppc64/meson.build b/tests/tcg/ppc64/meson.build index 8cca4d65a4c..ee86a75c23a 100644 --- a/tests/tcg/ppc64/meson.build +++ b/tests/tcg/ppc64/meson.build @@ -13,6 +13,9 @@ foreach t: tcg_tests['multiarch-linux-user']['tests'] if fs.stem(src) =3D=3D 'test-plugin-mem-access' and 'wrapper' in setup continue endif + if 'float_conv' in fs.stem(src) + continue + endif tests +=3D {src: setup} endforeach endforeach --=20 2.53.0 From nobody Mon Nov 23 04:44:05 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=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1792422831; cv=none; d=zohomail.com; s=zohoarc; b=e0RwRjeRJ0vYui6A5n6gW6jSVhoFIUcO9q671uZ+TnMaC9nb3urzF8JX9uV2IrGFE+9MZnJKwSGmI3UmySPGNQUkDJP4VX2o4yc6nd3xU2KmxORJfWmooN3t8F2M/89nb33/L+eiag+7Ghah+boDCUYQaPrnxKLkYhx8S3i6go0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792422831; h=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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5NGpZ171MzmokYmlm73DtNK+C2tRC0lKJT3Zdpj/tXA=; b=oJKWoBGya5+Bcnb/okdOx98TY8/aw2NUvWvYp9aSeMpi6PcyeKS54X4GOs8QF+i4bxQzjDuCb4udA3AXahStYmAw9osgkY0Vy9GKMnyJoJfqXoV74eEA+KSkaXQrqPO6gy9vCzckR2HbDW3s6kIimfzIiW8zPJB6KaXAQJOUeNA= 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792422831179740.3945515550311; Mon, 19 Oct 2026 08:13:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIp2k-0006jf-TX; Mon, 19 Oct 2026 11:12:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2d-0006hL-06; Mon, 19 Oct 2026 11:12:47 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2a-0002Vq-2M; Mon, 19 Oct 2026 11:12:46 -0400 Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JEEDLh4023842; Mon, 19 Oct 2026 15:12:40 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4hc0nvu2jf-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:40 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 69JE4ur9067453; Mon, 19 Oct 2026 15:12:39 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4hcmugx57b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:39 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 69JFCZgV34275780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Oct 2026 15:12:35 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5B00420049; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1B9432004D; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav06.fra02v.mail.ibm.com (Postfix) with SMTP; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 4958) id 0305E160EFC; Mon, 19 Oct 2026 17:12:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=5NGpZ171MzmokYmlm 73DtNK+C2tRC0lKJT3Zdpj/tXA=; b=KiyUSPxIsc04IZgcQw9Rw+pVkfZSTyJ53 chiZz0cB6QcgDncyOp12uSvF+9l6wzFnAhOk218Qc5v8nNR2yI1bWtTF8OJ8Uwrn kc7/8yY+YpUv4RhhF4PUW43bNOYjW9OBsPPEaJBe31XIBiOooJ2aqYw53t3oFZ0X C6SDpupWq7hOJ9MznfPN9EArxDHvwZ70fLq+O5+C4e8Mr4fNtQmD9Fiq8rpAl/Bq z9XsdANaCB33CQiQUHGw5Nc84h7wqF1JExeu61dCInp7PoCC7qf/9DJYlt0/HjDZ 8TNU+n5r/wFRrvw7vEqpqV7+IPBfGnNBp1NNyr62o+ptaXdrKervw== From: Eric Farman To: Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , "Michael S . Tsirkin" , Paolo Bonzini , Richard Henderson Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Matthew Rosato , Eric Farman Subject: [PATCH v1 3/4] tests/tcg/ppc64: Add float_convd test Date: Mon, 19 Oct 2026 17:12:30 +0200 Message-ID: <20261019151233.230172-4-farman@linux.ibm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261019151233.230172-1-farman@linux.ibm.com> References: <20261019151233.230172-1-farman@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX57Q89IvvUcAl BG+3Nyt/68TVuow0ofPkIG/ahnyOexp3xPodambU8ohtNyvkHE57XaWzIJk1QLK8/rW7Ego4Wdr QbtfkEX2t+yZunL8xh05re1aEQpvGM4= X-Proofpoint-ORIG-GUID: -R1mzTaBfjf_aFcKuRZDIEptbu9L9FDE X-Proofpoint-GUID: 9Ra5OLWDv7lNR6LIiILE_se0J5P0JG54 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfXwOkx98L779bk eFgvyfZPnIcYxkGkBn16H1Rx5H71+o3mvjmo8zewt3Q7nt7qP0eyw8mBo03ivp2YTzT3QLNxWPS THTaWUMdBI9bFHUtjuNGeX76vkzUsRhLfSJLpb5ncxn0qpES+Zc1/Cz2FqKnGmoDhrXMTBsCNDs AgLWSwu119xUysZsIDs47VKGINswdjbYfpE7L3aQygOIxtGSDYrn90/EHwQAbhvoPsmLS/NlbM3 slah5nAMtCEzPfTO7DiOJ8ljmznKzutddtj4dOAj6BC+OPa0L7OGmnkrGzIzaxnynSPfO1Yghtz N04sf5TyxU3JnaOLKylYcYHlVMfl+k/Dqoc2Q53lzBA1QLVK6h2NL0hS47cnmC7LxeYjFe233Sh EXZ7hjESQm8HyKhS6Zh2OSkbtye4IGH1PImteAKcnFCvGemd0Jfqm/rMXs/ET0o4NrKgwS0lZVM HduJg+NoevLr5P8u8sw== X-Authority-Analysis: v=2.4 cv=MY35KJ/f c=1 sm=1 tr=0 ts=6ad63368 cx=c_pps a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=RzCfie-kr_QcCd8fBx8p:22 a=VnNF1IyMAAAA:8 a=5OYcETvGXmoIBJ-MenUA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_04,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190058 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=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.158.5; envelope-from=farman@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: qemu development 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 @ibm.com) X-ZM-MESSAGEID: 1792422833678158500 Content-Type: text/plain; charset="utf-8" Re-enable the float_convd test, passing "power8" directly as a compiler flag to ensure a consistent result. Update the reference output to match the newly expected output. Signed-off-by: Eric Farman --- tests/tcg/ppc64/float_convd.ref | 144 ++++++++++++++++---------------- tests/tcg/ppc64/meson.build | 4 + 2 files changed, 76 insertions(+), 72 deletions(-) diff --git a/tests/tcg/ppc64/float_convd.ref b/tests/tcg/ppc64/float_convd.= ref index 43aa3117f14..2995a767c04 100644 --- a/tests/tcg/ppc64/float_convd.ref +++ b/tests/tcg/ppc64/float_convd.ref @@ -4,61 +4,61 @@ from double: f64(nan:0x007ff4000000000000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-nan:0x00fff8000000000000) to single: f32(-nan:0xffc00000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-inf:0x00fff0000000000000) to single: f32(-inf:0xff800000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) to int32: -2 (OK) to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) to int32: -1 (OK) to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXA= CT ) to int32: 0 (INEXACT ) @@ -208,19 +208,19 @@ from double: f64(0x1.fffffe00000000000000p+127:0x0047= efffffe0000000) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(inf:0x007ff0000000000000) to single: f32(inf:0x7f800000) (OK) to int32: 2147483647 (INVALID) @@ -232,80 +232,80 @@ from double: f64(nan:0x007ff8000000000000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff0000000000001) to single: f32(nan:0x7fc00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) ### Rounding upwards from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-nan:0x00fff8000000000000) to single: f32(-nan:0xffc00000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-inf:0x00fff0000000000000) to single: f32(-inf:0xff800000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEX= ACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) to int32: -2 (OK) to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) to int32: -1 (OK) to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXA= CT ) to int32: 0 (INEXACT ) @@ -455,19 +455,19 @@ from double: f64(0x1.fffffe00000000000000p+127:0x0047= efffffe0000000) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(inf:0x007ff0000000000000) to single: f32(inf:0x7f800000) (OK) to int32: 2147483647 (INVALID) @@ -479,80 +479,80 @@ from double: f64(nan:0x007ff8000000000000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff0000000000001) to single: f32(nan:0x7fc00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) ### Rounding downwards from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-nan:0x00fff8000000000000) to single: f32(-nan:0xffc00000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-inf:0x00fff0000000000000) to single: f32(-inf:0xff800000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) to int32: -2 (OK) to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) to int32: -1 (OK) to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) to single: f32(-0x1.00000000000000000000p-149:0x80000001) (UNDERFLOW INE= XACT ) to int32: 0 (INEXACT ) @@ -702,19 +702,19 @@ from double: f64(0x1.fffffe00000000000000p+127:0x0047= efffffe0000000) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXA= CT ) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(inf:0x007ff0000000000000) to single: f32(inf:0x7f800000) (OK) to int32: 2147483647 (INVALID) @@ -726,80 +726,80 @@ from double: f64(nan:0x007ff8000000000000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff0000000000001) to single: f32(nan:0x7fc00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) ### Rounding to zero from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-nan:0x00fff8000000000000) to single: f32(-nan:0xffc00000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-inf:0x00fff0000000000000) to single: f32(-inf:0xff800000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEX= ACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) to int32: -2 (OK) to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) to int32: -1 (OK) to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXA= CT ) to int32: 0 (INEXACT ) @@ -949,19 +949,19 @@ from double: f64(0x1.fffffe00000000000000p+127:0x0047= efffffe0000000) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXA= CT ) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from double: f64(inf:0x007ff0000000000000) to single: f32(inf:0x7f800000) (OK) to int32: 2147483647 (INVALID) @@ -973,16 +973,16 @@ from double: f64(nan:0x007ff8000000000000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff0000000000001) to single: f32(nan:0x7fc00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from double: f64(nan:0x007ff4000000000000) to single: f32(nan:0x7fe00000) (INVALID) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) diff --git a/tests/tcg/ppc64/meson.build b/tests/tcg/ppc64/meson.build index ee86a75c23a..ed8403eb67e 100644 --- a/tests/tcg/ppc64/meson.build +++ b/tests/tcg/ppc64/meson.build @@ -36,6 +36,10 @@ tests +=3D { 'cc_feat': 'power10', 'cflags': ['-O3'], 'qemu_args': ['-cpu', 'POWER10'], + }, + '../multiarch/float_convd.c': { + 'cflags': float_cflags + ['-mcpu=3Dpower8'], + 'expected_output': 'float_convd.ref', } } =20 --=20 2.53.0 From nobody Mon Nov 23 04:44:05 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=reject dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1792422823; cv=none; d=zohomail.com; s=zohoarc; b=nxAJnbdn8qTgKgH7cph7+Ero8vgHEUxlPGxtEtQkkcZjf5lFnGPy3QGmGfF9UkFbfVezN1nfFcd4XkBG2745/j+O6GAtblEWjLEh56Qxboy3PzvMFSXa84LmZANRdOwBPm3uZfPqA78k4J409Ei7u0GuP+FE5N4EWF5HR417ha4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792422823; h=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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=DYzmQDhUoyKSu1obL33pF9GdGU8GSCbrPdlc2iugXMM=; b=IfN91DLpmMtOzZOhkyiwR6bsCGK2lRY8BSEI1TZg/nJ3ZHDrKFwWRUGTKyyqwqOBpUH33aWkdXR17HBG7G1YkGAjjUXRHtgAGXNwhGbnVajE8iD3l8AUGxkHgJQXBq9As7I7tkqVf6g7DqJOl/BN/TG5jQNyb4ymOraWwUUKJ7g= 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=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792422823547611.4086760641047; Mon, 19 Oct 2026 08:13:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xIp2o-0006lF-Mt; Mon, 19 Oct 2026 11:12:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2c-0006hK-DZ; Mon, 19 Oct 2026 11:12:47 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xIp2a-0002Vp-3b; Mon, 19 Oct 2026 11:12:46 -0400 Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69JEELSQ3929247; Mon, 19 Oct 2026 15:12:40 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4hbxehug9f-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:39 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 69JE4vKp020682; Mon, 19 Oct 2026 15:12:39 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4hckbq6cmn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Oct 2026 15:12:39 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 69JFCZDs37880206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Oct 2026 15:12:35 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E4742004E; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1F49D2004D; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav01.fra02v.mail.ibm.com (Postfix) with SMTP; Mon, 19 Oct 2026 15:12:35 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 4958) id 0572F1612ED; Mon, 19 Oct 2026 17:12:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=DYzmQDhUoyKSu1obL 33pF9GdGU8GSCbrPdlc2iugXMM=; b=Tsqcc1ApzZcN5qdz7RZhCtta9D+E2wzXs 27t/bk1FEViQ974gpzKLrHWc+8388X+gynBnBiHag07UGEn2I1y4j/X4L8B5emF3 mLuZNCNST+O1r2CPENrGpEnYx7SFbZnLxYj1X4vUc0L9zDHqSCVJkLb7HyrcxdzS bAv3bozLa1Wk5VDtGe3S+brCr/IjNxEWmOGyyRVsuxhsgbKr1nhohifj7001H9+6 jFqufwsKPJaUaz09sED3W3K6R1kDbmmPQ+iEmV/ai3f1EoznFqO2jlWnkl8QN6AE MRh73Wfxem/+J49q4AoXbDZY4IMLg3mXi3sySY3bCR+1pichiu0ng== From: Eric Farman To: Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Chinmay Rath , Nicholas Piggin , Glenn Miles , Harsh Prateek Bora , "Michael S . Tsirkin" , Paolo Bonzini , Richard Henderson Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Matthew Rosato , Eric Farman Subject: [PATCH v1 4/4] tests/tcg/ppc64: Add float_convs test Date: Mon, 19 Oct 2026 17:12:31 +0200 Message-ID: <20261019151233.230172-5-farman@linux.ibm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261019151233.230172-1-farman@linux.ibm.com> References: <20261019151233.230172-1-farman@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX5Pvxg545rKxb GwS8RMYbH45KQcnGDIcZt9qsWJ6/Trhrvtct4noYhijUuFsD23lD194Grve15TorzDhG4+eKrUh UQAl/x48t8nK71MK1N/TVuccl3Rw0UQESL2a+WdgDOWZeSA7NvYm6O30lf6Y0nStY697JeB2dUm BvX7QsB1HIw9p8UeD1R9J+nsJ8ugO5Hk3/00eMxtLGzWLNDQSe18YJiH2m1oMcU4oKFE/m5BgqP ht+R8Pk1AvaqpUZrCrSTJI8SduIeNQkMq7Z4bELd7MHOg6CyhSklvpAQqn56giGpL6QwXOZb0pO g0MNYOzhw/ppMjXntZIrfQMHvBRaNNX6aHbTEEhQdr6BF2CM0dAzBi0WFgd5kxeRY6S28pdNnl4 p4e2VE+ZBb33mop2QgniAwUiv8xgESKCcFkvNPiongAHx50oIEt9Af7FXbJA1ESFXGlKyc87FsF 9iu+Z+RiIqijLVorIZA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDA1OCBTYWx0ZWRfX6pM/2VM22XbF ChqwQpexXsfsp/3d55DJC3K5m/xtn5Kl1AhaqfHStVBJMnM3zDm1+pUUxJACVqYpn+FL7SRsvpM yHFawePnvWPttO71Dd97IrXn/IQVef8= X-Proofpoint-GUID: -S8TScHaw7d1pcSr3Fp_K7ZEj9RTdtPo X-Proofpoint-ORIG-GUID: Z3KcUcLtBamUZTtNvaPnGJ_YIvjG4jkI X-Authority-Analysis: v=2.4 cv=OZQNnRTY c=1 sm=1 tr=0 ts=6ad63368 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=660iZSQnnn4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8 a=EyJSuCcodugoBwrUV90A:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_04,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190058 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=lists1p.gnu.org; Received-SPF: pass client-ip=148.163.158.5; envelope-from=farman@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: qemu development 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 @ibm.com) X-ZM-MESSAGEID: 1792422825792158500 Content-Type: text/plain; charset="utf-8" Pass "power8" as a compiler flag, and update the reference file with the new output. Signed-off-by: Eric Farman --- tests/tcg/ppc64/float_convs.ref | 80 ++++++++++++++++----------------- tests/tcg/ppc64/meson.build | 4 ++ 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/tests/tcg/ppc64/float_convs.ref b/tests/tcg/ppc64/float_convs.= ref index bd7b14d37e3..6e6f6368344 100644 --- a/tests/tcg/ppc64/float_convs.ref +++ b/tests/tcg/ppc64/float_convs.ref @@ -4,37 +4,37 @@ from single: f32(-nan:0xffa00000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-nan:0xffc00000) to double: f64(-nan:0x00fff8000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-inf:0xff800000) to double: f64(-inf:0x00fff0000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.31f75000000000000000p-40:0xab98fba8) to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) to int32: 0 (INEXACT ) @@ -160,13 +160,13 @@ from single: f32(0x1.c0bab600000000000000p+99:0x71605= d5b) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) to double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(inf:0x7f800000) to double: f64(inf:0x007ff0000000000000) (OK) to int32: 2147483647 (INVALID) @@ -178,50 +178,50 @@ from single: f32(nan:0x7fc00000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(nan:0x7fa00000) to double: f64(nan:0x007ff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) ### Rounding upwards from single: f32(-nan:0xffa00000) to double: f64(-nan:0x00fff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-nan:0xffc00000) to double: f64(-nan:0x00fff8000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-inf:0xff800000) to double: f64(-inf:0x00fff0000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.31f75000000000000000p-40:0xab98fba8) to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) to int32: 0 (INEXACT ) @@ -347,13 +347,13 @@ from single: f32(0x1.c0bab600000000000000p+99:0x71605= d5b) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) to double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(inf:0x7f800000) to double: f64(inf:0x007ff0000000000000) (OK) to int32: 2147483647 (INVALID) @@ -365,50 +365,50 @@ from single: f32(nan:0x7fc00000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(nan:0x7fa00000) to double: f64(nan:0x007ff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) ### Rounding downwards from single: f32(-nan:0xffa00000) to double: f64(-nan:0x00fff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-nan:0xffc00000) to double: f64(-nan:0x00fff8000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-inf:0xff800000) to double: f64(-inf:0x00fff0000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.31f75000000000000000p-40:0xab98fba8) to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) to int32: 0 (INEXACT ) @@ -534,13 +534,13 @@ from single: f32(0x1.c0bab600000000000000p+99:0x71605= d5b) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) to double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(inf:0x7f800000) to double: f64(inf:0x007ff0000000000000) (OK) to int32: 2147483647 (INVALID) @@ -552,50 +552,50 @@ from single: f32(nan:0x7fc00000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(nan:0x7fa00000) to double: f64(nan:0x007ff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) ### Rounding to zero from single: f32(-nan:0xffa00000) to double: f64(-nan:0x00fff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-nan:0xffc00000) to double: f64(-nan:0x00fff8000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-inf:0xff800000) to double: f64(-inf:0x00fff0000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) to double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) to double: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) to double: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(-0x1.31f75000000000000000p-40:0xab98fba8) to double: f64(-0x1.31f75000000000000000p-40:0x00bd731f7500000000) (OK) to int32: 0 (INEXACT ) @@ -721,13 +721,13 @@ from single: f32(0x1.c0bab600000000000000p+99:0x71605= d5b) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) to double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) to int32: 2147483647 (INVALID) to int64: 9223372036854775807 (INVALID) to uint32: -1 (INVALID) - to uint64: -1 (INEXACT INVALID) + to uint64: -1 (INVALID) from single: f32(inf:0x7f800000) to double: f64(inf:0x007ff0000000000000) (OK) to int32: 2147483647 (INVALID) @@ -739,10 +739,10 @@ from single: f32(nan:0x7fc00000) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) from single: f32(nan:0x7fa00000) to double: f64(nan:0x007ff4000000000000) (OK) to int32: -2147483648 (INVALID) to int64: -9223372036854775808 (INVALID) to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) + to uint64: 0 (INVALID) diff --git a/tests/tcg/ppc64/meson.build b/tests/tcg/ppc64/meson.build index ed8403eb67e..8fe9094b44f 100644 --- a/tests/tcg/ppc64/meson.build +++ b/tests/tcg/ppc64/meson.build @@ -40,6 +40,10 @@ tests +=3D { '../multiarch/float_convd.c': { 'cflags': float_cflags + ['-mcpu=3Dpower8'], 'expected_output': 'float_convd.ref', + }, + '../multiarch/float_convs.c': { + 'cflags': float_cflags + ['-mcpu=3Dpower8'], + 'expected_output': 'float_convs.ref', } } =20 --=20 2.53.0