{"id":2222050,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2222050/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/7fecae322cee17ab9ffb66cc80654925290c795d.1775843299.git.matheus.bernardino@oss.qualcomm.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<7fecae322cee17ab9ffb66cc80654925290c795d.1775843299.git.matheus.bernardino@oss.qualcomm.com>","date":"2026-04-10T17:55:57","name":"[v4,09/16] target/hexagon: add v68 HVX IEEE float conversion insns","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"9f6b4b870438e44cd91763c18201f3a19ec55434","submitter":{"id":90606,"url":"http://patchwork.ozlabs.org/api/1.1/people/90606/?format=json","name":"Matheus Tavares Bernardino","email":"matheus.bernardino@oss.qualcomm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/7fecae322cee17ab9ffb66cc80654925290c795d.1775843299.git.matheus.bernardino@oss.qualcomm.com/mbox/","series":[{"id":499491,"url":"http://patchwork.ozlabs.org/api/1.1/series/499491/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499491","date":"2026-04-10T17:55:50","name":"hexagon: add missing HVX float instructions","version":4,"mbox":"http://patchwork.ozlabs.org/series/499491/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2222050/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2222050/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=L48LfI6l;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=SqxY5mMZ;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fskzX3Vlvz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 03:57:44 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wBG5w-0006ti-H8; Fri, 10 Apr 2026 13:56:40 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <matheus.bernardino@oss.qualcomm.com>)\n id 1wBG5r-0006rn-SK\n for qemu-devel@nongnu.org; Fri, 10 Apr 2026 13:56:35 -0400","from mx0a-0031df01.pphosted.com ([205.220.168.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <matheus.bernardino@oss.qualcomm.com>)\n id 1wBG5l-0001fi-Se\n for qemu-devel@nongnu.org; Fri, 10 Apr 2026 13:56:34 -0400","from pps.filterd (m0279863.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63AAg5NQ4147926\n for <qemu-devel@nongnu.org>; Fri, 10 Apr 2026 17:56:19 GMT","from mail-dl1-f69.google.com (mail-dl1-f69.google.com\n [74.125.82.69])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4deudgjcd5-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Fri, 10 Apr 2026 17:56:18 +0000 (GMT)","by mail-dl1-f69.google.com with SMTP id\n a92af1059eb24-12c35f2c09dso1274216c88.0\n for <qemu-devel@nongnu.org>; Fri, 10 Apr 2026 10:56:18 -0700 (PDT)","from hu-mathbern-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-12c3459f7ffsm4256271c88.3.2026.04.10.10.56.16\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 10 Apr 2026 10:56:16 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=qcppdkim1; bh=ZzpX2dtmew8\n OnfEXBDiB07/5iswcyFDy+0j5bknVIDY=; b=L48LfI6lKkjCIil+x0bnr2HLLlX\n EP4RXDd89NK4ogfBA9IDvpdcZNgKrNYy/7Lg7rcpGzHgVzZPVpMY6GG2B2/vy6vx\n OU7A7rabtvmKNJfjleWjuIYAGR5pmywnpstK18Umgspyg06f5tWbdhd/VXe153Xq\n UfyJ0yx1Qn5hWRlXp5xodUXzF9iYRbZXeLwmg65qNzgA8apWFogKCK9RVyFDbv3h\n aYYNJWzJD81dgTOm15EAADB/oKxO6uYSnr4QxR9xyQF0kuCC6jy5NdZ08c5QbxNV\n IiYw4RL1gyAHwx+UoOijeugSH0L9ljFlD8ZOZn1/gG1FhngPI7yoYapeU9Q==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1775843778; x=1776448578; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=ZzpX2dtmew8OnfEXBDiB07/5iswcyFDy+0j5bknVIDY=;\n b=SqxY5mMZPAxJjZGzGCvZjcLbsbiaFbvj4+5iQdxzEAJqdW2mQWnZsujoiILbWkpJ1i\n rzcJew2Pm+bZVP9dYXevJltSLxkdNqCYAE9CTv/0VgmxM3tRP3uIEUzZ4JWrnv8Nr22A\n LEd00VFGC13/nXlBTxcOaI+ONFA6dBIApwiMG5sb3dYdtX7ECu1o4M8chVW9/AwoOp69\n eoKq/pTbz8ashuSaTL2TlFYUp0dvGd7v/Sdj9LkfaMPjNQzJkEahRToNHc4zB8jqjJ12\n DkooqMoQ9Dpxq6xq0lCqTb6bt/8Bw3nOHx8g+NgbiurhOV1DzRKbQ+0d5vjSLTjIuT1H\n lVpw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775843778; x=1776448578;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=ZzpX2dtmew8OnfEXBDiB07/5iswcyFDy+0j5bknVIDY=;\n b=mLD0DxA+pmYpIaCA0ZS1PFxfbu357QCe+CuthVK/BtXIhLTVfcXAWIAtaqSy4mBDKF\n bJwLucnVkPeEKvQL4bBhUxmvcXLuvX1FdrqxxKB7zQY9FPvPju24M9puJuKg4nJK0RMQ\n at8CLLf8+QoTeb9vvVx/KSIZKupLUuWxYxxlgQsmEKVIbCQvKX/p0f2WqunEomZXBSa/\n 929ezZvoqGeQfsYD2QukQZHJRez5TVid5qJs6CxUdlaGwHBHh9yTDAF20/RPYEoej20J\n zeI2ZWh60+ke4hI+X+swkd8wcBNkhynEQff5Q4IP/8KwRxGWS5F81OVtMiRYuKMMG39g\n xAQA==","X-Gm-Message-State":"AOJu0YxrOpCdaYv8RLPElMD44WAHu1Y+oEFz3sXi+EC8pENKcmMlOdSo\n 0686AJOmR35gJRFN6RPTCfYRzvMvVDhxJPzVXqq8jik5GheSPJep90k6TSdPHoNzxqpSwaLIqMd\n 3NoUZ70xF3WV7yjrevNZ3Y9fC24vLljtm3FHgA+HhDBBXXCSVKfW4AQD11A6oXoBkwgr6","X-Gm-Gg":"AeBDievSA7bOYE9P9Ix6zwCgvy8Tn84JgE1G6KEPwqnIxA9NAHlfzlxhLeUfa9BmsdH\n ajMOLVZVB5+SDg8mlDkR3q3bvFrehORWH6PvBXHuypYHSC+rRVtWvQCigKkOX3nzgeqqZQunJ0V\n +lgsdAl0I5YcUd90uuq3GpgVcm64dh/e1+jKwDIvp59IHPLCVaa/gvKozeYoJFYUoYp80KIo4Ld\n MjfDFaRssD7qZdH03LGNqNOcmtChi3HhUiMeFikbMw5/IgBg6MHhXj8qVoJDPQnn/j3hmu7Yu7J\n nDpQzU5Wm97HGNf0m5CNG/amh/1xJhieBh48UtmqIBF56DyTFSTmjIrUdgUqKil50bhc5S8rS0p\n I7HxeAtxgaQIvMS25H1wToyUA/AqOZLxWNhUPs3SLKgs00Ju4t3laYN0W0Sezn1ZkqnCzXXskY5\n oGPtC5v2gA","X-Received":["by 2002:a05:7022:fa04:b0:12b:ebb9:1c0b with SMTP id\n a92af1059eb24-12c34ef8f1cmr2443731c88.31.1775843777508;\n Fri, 10 Apr 2026 10:56:17 -0700 (PDT)","by 2002:a05:7022:fa04:b0:12b:ebb9:1c0b with SMTP id\n a92af1059eb24-12c34ef8f1cmr2443715c88.31.1775843776848;\n Fri, 10 Apr 2026 10:56:16 -0700 (PDT)"],"From":"Matheus Tavares Bernardino <matheus.bernardino@oss.qualcomm.com>","To":"qemu-devel@nongnu.org","Cc":"richard.henderson@linaro.org, ale@rev.ng, anjo@rev.ng,\n brian.cain@oss.qualcomm.com, ltaylorsimpson@gmail.com,\n marco.liebel@oss.qualcomm.com, philmd@linaro.org,\n quic_mburton@quicinc.com, sid.manning@oss.qualcomm.com","Subject":"[PATCH v4 09/16] target/hexagon: add v68 HVX IEEE float conversion\n insns","Date":"Fri, 10 Apr 2026 10:55:57 -0700","Message-Id":"\n <7fecae322cee17ab9ffb66cc80654925290c795d.1775843299.git.matheus.bernardino@oss.qualcomm.com>","X-Mailer":"git-send-email 2.37.2","In-Reply-To":"<cover.1775843299.git.matheus.bernardino@oss.qualcomm.com>","References":"<cover.1775843299.git.matheus.bernardino@oss.qualcomm.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Proofpoint-ORIG-GUID":"jdrfYgUv6ZgGkrZ-ltZa2vshG2QnMc_X","X-Proofpoint-GUID":"jdrfYgUv6ZgGkrZ-ltZa2vshG2QnMc_X","X-Authority-Analysis":"v=2.4 cv=H/brBeYi c=1 sm=1 tr=0 ts=69d939c3 cx=c_pps\n a=kVLUcbK0zfr7ocalXnG1qA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=pGLkceISAAAA:8\n a=EUspDBNiAAAA:8 a=2JvGeOnW2cDEA-NDw-QA:9 a=vr4QvYf-bLy2KjpDp97w:22","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDEwMDE2OCBTYWx0ZWRfX3RHfLcWelw8F\n f453ln/9wE7DqsVGM3hya9RZvX7W1dai58v+vLFY7hF2El7JCEsJwSmt76NOonNdS/7Lpe1Lb6e\n JGuApeXn7VEAlxPVjGngPXz2eC9qvWBiGwn51r4ildvBR3BDaEFctCnlh8sWq6VGDvNjrTRq815\n 8LG5fIWU+rPgzpwlGqrc5U59wwn4byBQEeJJNHRjLTJaNIUfoEs+UezDQPji9lpD1Eq12Mih3zs\n siXXnhwOSrzMprg94yax2b/8TSPJ2GYNEdwJzSTpamv7ggHROtfqwgArxNrI4h0SzACqaKiDJQb\n 00vkod8KMaZ81e2d+Mruyj1tNmjNso1O+PVNl3tIdx60TfHmim08wQryg6XkBB7G8VG1ahhm1rR\n Lwwj1w2o56GmHcDjW1biWbPA/lU/e/H71yH82bfP0jgydGF+gMxDb0haJqbTsgm/11fQi8aKa9R\n IgGvkdcOi+sc4C/kN8A==","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-10_05,2026-04-09_02,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0\n suspectscore=0 malwarescore=0 bulkscore=0 impostorscore=0 clxscore=1015\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604100168","Received-SPF":"pass client-ip=205.220.168.131;\n envelope-from=matheus.bernardino@oss.qualcomm.com;\n helo=mx0a-0031df01.pphosted.com","X-Spam_score_int":"-27","X-Spam_score":"-2.8","X-Spam_bar":"--","X-Spam_report":"(-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,\n 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 <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"Add HVX IEEE floating-point conversion instructions:\n- vconv_hf_h, vconv_h_hf, vconv_sf_w, vconv_w_sf: vconv operations\n- vcvt_hf_sf, vcvt_sf_hf: float <-> half float conversions\n- vcvt_hf_b, vcvt_hf_h, vcvt_hf_ub, vcvt_hf_uh: int to half float\n- vcvt_b_hf, vcvt_h_hf, vcvt_ub_hf, vcvt_uh_hf: half float to int\n\nReviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>\nSigned-off-by: Matheus Tavares Bernardino <matheus.bernardino@oss.qualcomm.com>\n---\n target/hexagon/mmvec/hvx_ieee_fp.h           |  4 +\n target/hexagon/mmvec/hvx_ieee_fp.c           | 18 ++++\n target/hexagon/imported/mmvec/encode_ext.def | 18 ++++\n target/hexagon/imported/mmvec/ext.idef       | 97 ++++++++++++++++++++\n 4 files changed, 137 insertions(+)","diff":"diff --git a/target/hexagon/mmvec/hvx_ieee_fp.h b/target/hexagon/mmvec/hvx_ieee_fp.h\nindex dff2fab14c..bdc21e08f0 100644\n--- a/target/hexagon/mmvec/hvx_ieee_fp.h\n+++ b/target/hexagon/mmvec/hvx_ieee_fp.h\n@@ -10,6 +10,7 @@\n #include \"fpu/softfloat.h\"\n \n #define f16_to_f32(A) float16_to_float32((A), true, &env->hvx_fp_status)\n+#define f32_to_f16(A) float32_to_float16((A), true, &env->hvx_fp_status)\n \n float32 fp_mult_sf_hf(float16 a1, float16 a2, float_status *fp_status);\n float32 fp_vdmpy(float16 a1, float16 a2, float16 a3, float16 a4,\n@@ -21,4 +22,7 @@ float32 qf_min_sf(float32 a1, float32 a2, float_status *fp_status);\n float16 qf_max_hf(float16 a1, float16 a2, float_status *fp_status);\n float16 qf_min_hf(float16 a1, float16 a2, float_status *fp_status);\n \n+int32_t conv_w_sf(float32 a, float_status *fp_status);\n+int16_t conv_h_hf(float16 a, float_status *fp_status);\n+\n #endif\ndiff --git a/target/hexagon/mmvec/hvx_ieee_fp.c b/target/hexagon/mmvec/hvx_ieee_fp.c\nindex 2ae79a485a..697f35b5ed 100644\n--- a/target/hexagon/mmvec/hvx_ieee_fp.c\n+++ b/target/hexagon/mmvec/hvx_ieee_fp.c\n@@ -69,3 +69,21 @@ float16 qf_min_hf(float16 a1, float16 a2, float_status *fp_status)\n     }\n     return float16_min(a1, a2, fp_status);\n }\n+\n+int32_t conv_w_sf(float32 a, float_status *fp_status)\n+{\n+    /* float32_to_int32 converts any NaN to MAX, hexagon looks at the sign. */\n+    if (float32_is_any_nan(a)) {\n+        return float32_is_neg(a) ? INT32_MIN : INT32_MAX;\n+    }\n+    return float32_to_int32_round_to_zero(a, fp_status);\n+}\n+\n+int16_t conv_h_hf(float16 a, float_status *fp_status)\n+{\n+    /* float16_to_int16 converts any NaN to MAX, hexagon looks at the sign. */\n+    if (float16_is_any_nan(a)) {\n+        return float16_is_neg(a) ? INT16_MIN : INT16_MAX;\n+    }\n+    return float16_to_int16_round_to_zero(a, fp_status);\n+}\ndiff --git a/target/hexagon/imported/mmvec/encode_ext.def b/target/hexagon/imported/mmvec/encode_ext.def\nindex 72daf8724c..c1ed1b6c23 100644\n--- a/target/hexagon/imported/mmvec/encode_ext.def\n+++ b/target/hexagon/imported/mmvec/encode_ext.def\n@@ -840,4 +840,22 @@ DEF_ENC(V6_vfneg_sf,\"00011110--0-0110PP1uuuuu011ddddd\")\n DEF_ENC(V6_vabs_hf,\"00011110--0-0110PP1uuuuu100ddddd\")\n DEF_ENC(V6_vabs_sf,\"00011110--0-0110PP1uuuuu101ddddd\")\n \n+/* IEEE FP vcvt instructions */\n+DEF_ENC(V6_vcvt_sf_hf,\"00011110--0-0100PP1uuuuu100ddddd\")\n+DEF_ENC(V6_vcvt_hf_sf,\"00011111011vvvvvPP1uuuuu001ddddd\")\n+DEF_ENC(V6_vcvt_hf_ub,\"00011110--0-0100PP1uuuuu001ddddd\")\n+DEF_ENC(V6_vcvt_hf_b,\"00011110--0-0100PP1uuuuu010ddddd\")\n+DEF_ENC(V6_vcvt_hf_uh,\"00011110--0-0100PP1uuuuu101ddddd\")\n+DEF_ENC(V6_vcvt_hf_h,\"00011110--0-0100PP1uuuuu111ddddd\")\n+DEF_ENC(V6_vcvt_uh_hf,\"00011110--0--101PP1uuuuu000ddddd\")\n+DEF_ENC(V6_vcvt_h_hf,\"00011110--0-0110PP1uuuuu000ddddd\")\n+DEF_ENC(V6_vcvt_ub_hf,\"00011111110vvvvvPP1uuuuu101ddddd\")\n+DEF_ENC(V6_vcvt_b_hf,\"00011111110vvvvvPP1uuuuu110ddddd\")\n+\n+/* IEEE FP vconv instructions */\n+DEF_ENC(V6_vconv_sf_w,\"00011110--0--101PP1uuuuu011ddddd\")\n+DEF_ENC(V6_vconv_w_sf,\"00011110--0--101PP1uuuuu001ddddd\")\n+DEF_ENC(V6_vconv_hf_h,\"00011110--0--101PP1uuuuu100ddddd\")\n+DEF_ENC(V6_vconv_h_hf,\"00011110--0--101PP1uuuuu010ddddd\")\n+\n #endif /* NO MMVEC */\ndiff --git a/target/hexagon/imported/mmvec/ext.idef b/target/hexagon/imported/mmvec/ext.idef\nindex 1b16ed0628..788ce1d2ae 100644\n--- a/target/hexagon/imported/mmvec/ext.idef\n+++ b/target/hexagon/imported/mmvec/ext.idef\n@@ -63,6 +63,9 @@ ITERATOR_INSN_ANY_SLOT_DOUBLE_VEC(WIDTH,TAG,SYNTAX2,DESCR,CODE)\n EXTINSN(V6_##TAG, SYNTAX, ATTRIBS(A_EXTENSION,A_CVI,A_CVI_VS),  \\\n DESCR, DO_FOR_EACH_CODE(WIDTH, CODE))\n \n+#define ITERATOR_INSN_SHIFT_SLOT_FLT(WIDTH,TAG,SYNTAX,DESCR,CODE) \\\n+EXTINSN(V6_##TAG, SYNTAX, ATTRIBS(A_EXTENSION,A_CVI,A_CVI_VS,A_HVX_FLT),  \\\n+DESCR, DO_FOR_EACH_CODE(WIDTH, CODE))\n \n #define ITERATOR_INSN_SHIFT3_SLOT(WIDTH,TAG,SYNTAX,DESCR,CODE) \\\n EXTINSN(V6_##TAG, SYNTAX, ATTRIBS(A_EXTENSION,A_CVI,A_CVI_VS,A_CVI_VS_3SRC,A_NOTE_SHIFT_RESOURCE,A_NOTE_NOVP,A_NOTE_VA_UNARY),  \\\n@@ -3046,6 +3049,100 @@ ITERATOR_INSN_IEEE_FP_16_32_LATE(16, vabs_hf,  \"Vd32.hf=vabs(Vu32.hf)\", \\\n ITERATOR_INSN_IEEE_FP_16_32_LATE(32, vabs_sf,  \"Vd32.sf=vabs(Vu32.sf)\", \\\n     \"Vector IEEE abs: sf\", VdV.sf[i] = float32_abs(VuV.sf[i]))\n \n+/* Two pipes: P2 & P3, two outputs, 16-bit */\n+#define ITERATOR_INSN_IEEE_FP_DOUBLE_16(WIDTH,TAG,SYNTAX,DESCR,CODE) \\\n+EXTINSN(V6_##TAG, SYNTAX, \\\n+ATTRIBS(A_EXTENSION,A_HVX_IEEE_FP,A_CVI,A_CVI_VX_DV,A_HVX_IEEE_FP_OUT_16), \\\n+DESCR, DO_FOR_EACH_CODE(WIDTH, CODE))\n+\n+/* Two pipes: P2 & P3, two outputs, 32-bit output */\n+#define ITERATOR_INSN_IEEE_FP_DOUBLE_32(WIDTH,TAG,SYNTAX,DESCR,CODE) \\\n+EXTINSN(V6_##TAG, SYNTAX, \\\n+    ATTRIBS(A_EXTENSION,A_HVX_IEEE_FP,A_CVI,A_CVI_VX_DV,A_HVX_IEEE_FP_OUT_32), \\\n+    DESCR, DO_FOR_EACH_CODE(WIDTH, CODE))\n+\n+/* Single pipe, 16-bit output */\n+#define ITERATOR_INSN_IEEE_FP_16(WIDTH,TAG,SYNTAX,DESCR,CODE) \\\n+EXTINSN(V6_##TAG, SYNTAX, \\\n+    ATTRIBS(A_EXTENSION,A_HVX_IEEE_FP,A_CVI,A_CVI_VX,A_HVX_IEEE_FP_OUT_16), \\\n+    DESCR, DO_FOR_EACH_CODE(WIDTH, CODE))\n+\n+/* single pipe, output can feed 16- or 32-bit accumulate */\n+#define ITERATOR_INSN_IEEE_FP_16_32(WIDTH,TAG,SYNTAX,DESCR,CODE) \\\n+EXTINSN(V6_##TAG, SYNTAX, \\\n+    ATTRIBS(A_EXTENSION,A_HVX_IEEE_FP,A_CVI,A_CVI_VX,A_HVX_IEEE_FP_OUT_16,A_HVX_IEEE_FP_OUT_32), \\\n+    DESCR, DO_FOR_EACH_CODE(WIDTH, CODE))\n+\n+/******************************************************************************\n+ * IEEE FP convert instructions\n+ ******************************************************************************/\n+\n+ITERATOR_INSN_IEEE_FP_DOUBLE_16(32,  vcvt_hf_ub, \"Vdd32.hf=vcvt(Vu32.ub)\",\n+    \"Vector IEEE cvt from int: ub widen to hf\",\n+    VddV.v[0].hf[2*i]   = uint64_to_float16_scalbn(VuV.ub[4*i], float_round_nearest_even, 0);\n+    VddV.v[0].hf[2*i+1] = uint64_to_float16_scalbn(VuV.ub[4*i+1], float_round_nearest_even, 0);\n+    VddV.v[1].hf[2*i]   = uint64_to_float16_scalbn(VuV.ub[4*i+2], float_round_nearest_even, 0);\n+    VddV.v[1].hf[2*i+1] = uint64_to_float16_scalbn(VuV.ub[4*i+3], float_round_nearest_even, 0))\n+\n+ITERATOR_INSN_IEEE_FP_DOUBLE_16(32,  vcvt_hf_b,  \"Vdd32.hf=vcvt(Vu32.b)\",\n+    \"Vector IEEE cvt from int: b widen to hf\",\n+    VddV.v[0].hf[2*i]   = int64_to_float16_scalbn(VuV.b[4*i], float_round_nearest_even, 0);\n+    VddV.v[0].hf[2*i+1] = int64_to_float16_scalbn(VuV.b[4*i+1], float_round_nearest_even, 0);\n+    VddV.v[1].hf[2*i]   = int64_to_float16_scalbn(VuV.b[4*i+2], float_round_nearest_even, 0);\n+    VddV.v[1].hf[2*i+1] = int64_to_float16_scalbn(VuV.b[4*i+3], float_round_nearest_even, 0))\n+\n+ITERATOR_INSN_IEEE_FP_DOUBLE_32(32, vcvt_sf_hf, \"Vdd32.sf=vcvt(Vu32.hf)\",\n+    \"Vector IEEE cvt: hf widen to sf\",\n+    VddV.v[0].sf[i] = f16_to_f32(VuV.hf[2*i]);\n+    VddV.v[1].sf[i] = f16_to_f32(VuV.hf[2*i+1]))\n+\n+ITERATOR_INSN_IEEE_FP_16(16,    vcvt_hf_uh, \"Vd32.hf=vcvt(Vu32.uh)\",\n+    \"Vector IEEE cvt from int: uh to hf\",\n+    VdV.hf[i] = uint64_to_float16_scalbn(VuV.uh[i], float_round_nearest_even, 0))\n+ITERATOR_INSN_IEEE_FP_16(16,    vcvt_hf_h,  \"Vd32.hf=vcvt(Vu32.h)\",\n+    \"Vector IEEE cvt from int: h to hf\",\n+    VdV.hf[i] = int64_to_float16_scalbn(VuV.h[i], float_round_nearest_even, 0))\n+ITERATOR_INSN_IEEE_FP_16_32(16, vcvt_uh_hf, \"Vd32.uh=vcvt(Vu32.hf)\",\n+    \"Vector IEEE cvt to int: hf to uh\",\n+    VdV.uh[i] = float16_to_uint16_scalbn(VuV.hf[i], float_round_nearest_even, 0, &env->hvx_fp_status))\n+ITERATOR_INSN_IEEE_FP_16_32(16, vcvt_h_hf,  \"Vd32.h=vcvt(Vu32.hf)\",\n+    \"Vector IEEE cvt to int: hf to h\",\n+    VdV.h[i]  = float16_to_int16_scalbn(VuV.hf[i], float_round_nearest_even, 0, &env->hvx_fp_status))\n+\n+ITERATOR_INSN_IEEE_FP_16(32, vcvt_hf_sf, \"Vd32.hf=vcvt(Vu32.sf,Vv32.sf)\",\n+    \"Vector IEEE cvt: sf to hf\",\n+    VdV.hf[2*i]   = f32_to_f16(VuV.sf[i]);\n+    VdV.hf[2*i+1] = f32_to_f16(VvV.sf[i]))\n+\n+ITERATOR_INSN_IEEE_FP_16_32(32, vcvt_ub_hf, \"Vd32.ub=vcvt(Vu32.hf,Vv32.hf)\", \"Vector cvt to int: hf narrow to ub\",\n+    VdV.ub[4*i]   = float16_to_uint8_scalbn(VuV.hf[2*i], float_round_nearest_even, 0, &env->hvx_fp_status);\n+    VdV.ub[4*i+1] = float16_to_uint8_scalbn(VuV.hf[2*i+1], float_round_nearest_even, 0, &env->hvx_fp_status);\n+    VdV.ub[4*i+2] = float16_to_uint8_scalbn(VvV.hf[2*i], float_round_nearest_even, 0, &env->hvx_fp_status);\n+    VdV.ub[4*i+3] = float16_to_uint8_scalbn(VvV.hf[2*i+1], float_round_nearest_even, 0, &env->hvx_fp_status))\n+\n+ITERATOR_INSN_IEEE_FP_16_32(32, vcvt_b_hf,  \"Vd32.b=vcvt(Vu32.hf,Vv32.hf)\",\n+    \"Vector cvt to int: hf narrow to b\",\n+    VdV.b[4*i]   = float16_to_int8_scalbn(VuV.hf[2*i], float_round_nearest_even, 0, &env->hvx_fp_status);\n+    VdV.b[4*i+1] = float16_to_int8_scalbn(VuV.hf[2*i+1], float_round_nearest_even, 0, &env->hvx_fp_status);\n+    VdV.b[4*i+2] = float16_to_int8_scalbn(VvV.hf[2*i], float_round_nearest_even, 0, &env->hvx_fp_status);\n+    VdV.b[4*i+3] = float16_to_int8_scalbn(VvV.hf[2*i+1], float_round_nearest_even, 0, &env->hvx_fp_status))\n+\n+ITERATOR_INSN_SHIFT_SLOT_FLT(32, vconv_w_sf,\"Vd32.w=Vu32.sf\",\n+    \"Vector conversion of sf32 format to int w\",\n+    VdV.w[i] = conv_w_sf(VuV.sf[i], &env->hvx_fp_status))\n+\n+ITERATOR_INSN_SHIFT_SLOT_FLT(16, vconv_h_hf,\"Vd32.h=Vu32.hf\",\n+    \"Vector conversion of hf16 format to int hw\",\n+    VdV.h[i] = conv_h_hf(VuV.hf[i], &env->hvx_fp_status))\n+\n+ITERATOR_INSN_SHIFT_SLOT_FLT(32, vconv_sf_w,\"Vd32.sf=Vu32.w\",\n+    \"Vector conversion of int w format to sf32\",\n+    VdV.sf[i] = int32_to_float32(VuV.w[i], &env->hvx_fp_status))\n+\n+ITERATOR_INSN_SHIFT_SLOT_FLT(16, vconv_hf_h,\"Vd32.hf=Vu32.h\",\n+    \"Vector conversion of int hw format to hf16\",\n+    VdV.hf[i] = float16_val(int16_to_float16(VuV.h[i], &env->hvx_fp_status)))\n+\n /******************************************************************************\n  DEBUG Vector/Register Printing\n  ******************************************************************************/\n","prefixes":["v4","09/16"]}