{"id":2228435,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228435/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260426134002.865628-76-richard.henderson@linaro.org/","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":"<20260426134002.865628-76-richard.henderson@linaro.org>","date":"2026-04-26T13:39:52","name":"[75/84] fpu: Drop QEMU_FLATTEN from muladd routines","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"c2e06c77266b420ff690d072c0daed42e82da762","submitter":{"id":72104,"url":"http://patchwork.ozlabs.org/api/1.1/people/72104/?format=json","name":"Richard Henderson","email":"richard.henderson@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260426134002.865628-76-richard.henderson@linaro.org/mbox/","series":[{"id":501533,"url":"http://patchwork.ozlabs.org/api/1.1/series/501533/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501533","date":"2026-04-26T13:38:37","name":"fpu: Export some internals for targets","version":1,"mbox":"http://patchwork.ozlabs.org/series/501533/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228435/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228435/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=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=NzRGkwkO;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.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 4g3SkD3wbpz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 23:49:56 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wGzpc-0008W9-0h; Sun, 26 Apr 2026 09:47:32 -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 <richard.henderson@linaro.org>)\n id 1wGzoj-0006N2-L8\n for qemu-devel@nongnu.org; Sun, 26 Apr 2026 09:46:39 -0400","from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>)\n id 1wGzof-0001m7-TF\n for qemu-devel@nongnu.org; Sun, 26 Apr 2026 09:46:36 -0400","by mail-pl1-x62a.google.com with SMTP id\n d9443c01a7336-2b2ea1b3962so53573225ad.0\n for <qemu-devel@nongnu.org>; Sun, 26 Apr 2026 06:46:33 -0700 (PDT)","from stoup.. ([180.233.125.15]) by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5faa34ea7sm280544085ad.34.2026.04.26.06.46.30\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 26 Apr 2026 06:46:32 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777211192; x=1777815992; 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=ArQwXjzFF16f9Ne+o84gg3ezdzBrk7JE6QKO/XyacX4=;\n b=NzRGkwkOF9pnRzIQRHnOVyNE/yAzpxAuqTt7rewRUZx/o4wofSL6k/cvGIrXdv5ZkA\n bLvnHfsEH59y/ZHx7nfDoxl/41SRL76CtPyIh67MhPNMJYOc3AmBSLpAcWDN1bgzw6nl\n c/bEs+q7tNg8g8Almh9E4yGAK3IF8JbNTpVtoNWkZXBeudm7AwW+3x0uxFadWe3CW3eH\n ANJV99RsZLTJfDrmWRlRg7kk1+a/AkyoGQumCSDxXoDwlLxV/OEhqK+vjdz7NXnsFSnb\n SzA/1VUMrKXRe3e0KuWbo+jr/0L67uciCEn0E4fQoeRxHfh9msa8wz526TWmppLoDT1o\n RFeQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777211192; x=1777815992;\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=ArQwXjzFF16f9Ne+o84gg3ezdzBrk7JE6QKO/XyacX4=;\n b=X+opP/1QPWGpkZ6hFpJXL/xu6cUVkNG5sS14j+x93NwJegIqa8EeOxceEvsG+XLIHu\n 34F+muuRMRN2sl8uZKWWK8JM3IphxT8/70jboR6988Vi2oNLXNyk+qIcWMLbFeGN4DM8\n ccxwuY9fSMftQbaHLf3WBu1ZDPieF4JVQomVuhrF0owSKFeaaMfSuw6Qd6uFHv0cRlAG\n 9ERyya7Ax39HU3N0G6tV1zGaeNyRuatIEFfeoAPPyisjy8OxamFdClfB5oIuWON7m+KO\n 1sxALOoPKZ2kCyGMmFMUEYHm2Hg/JZCXRR+DU11R0xg/kZ9tRMu5TL+EECzu9sGsyHXV\n FZrg==","X-Gm-Message-State":"AOJu0YzbtRozgxR8NqRtJFGel1cmSpYuhfug8eAcV4XgHv4npwHrTbXz\n guSoPMzQBt1FQ/FLUBhxYFrTGPSsctvmGvb8Z5IVHS2WH7DDNt9GV1Z7SQVlMBD8dByCFqBgMSu\n tRkEWtTY=","X-Gm-Gg":"AeBDiesGMUPg2lAKSeVHeD0f3KQdXWNFQA8GqdBzj8iHp/z1sVfkNtAXG42LdKZycNJ\n BhNbux6I4R+W8gmX5HBgZ/bEmUr9YQWVAN2joAgMknz1r/Q1h+CYhHGFNyUKvTytE36gJtOB0J5\n aksJpLMP1SeSlyl9VvpBzjiMBvsnV8N5GbZblPk90N5v+Po96nm3Ik3kR0bHjDPJOwF0etShTjH\n QWoNUxogeG2f9hgqyY1YHJs1Scjf/IMAHvZmL22s8UNAQgDf8A8HG6ao6t4dNybl8YPyXr4TCCs\n Dx+W2J5tufT3SlIKywDiYrTu2MaZ+toxecpOExfUjQYLhlLt2uy7rtUc2VsZMpYqL8H+G0TBAm0\n QN22O5bil9wehfoK5M4gPs7jAqjXpVeAQdXWwHE+kzTclzpVoIsykztRFi9Zn/qzhLg024K7oAQ\n TyT4lRSSz6QIRJBkshnqwvwi7HqQmSt0sOXIfhmtqe","X-Received":"by 2002:a17:902:ee84:b0:2b2:4697:78f4 with SMTP id\n d9443c01a7336-2b5f9fe094fmr331404855ad.31.1777211192517;\n Sun, 26 Apr 2026 06:46:32 -0700 (PDT)","From":"Richard Henderson <richard.henderson@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"qemu-arm@nongnu.org,\n\tqemu-s390x@nongnu.org","Subject":"[PATCH 75/84] fpu: Drop QEMU_FLATTEN from muladd routines","Date":"Sun, 26 Apr 2026 23:39:52 +1000","Message-ID":"<20260426134002.865628-76-richard.henderson@linaro.org>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260426134002.865628-1-richard.henderson@linaro.org>","References":"<20260426134002.865628-1-richard.henderson@linaro.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2607:f8b0:4864:20::62a;\n envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.google.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 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_NONE=-0.0001, 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":"The float16, bfloat16 and float128 paths are not so\nimportant that they require forced optimization.\n\nSigned-off-by: Richard Henderson <richard.henderson@linaro.org>\n---\n fpu/softfloat.c | 13 ++++++-------\n 1 file changed, 6 insertions(+), 7 deletions(-)","diff":"diff --git a/fpu/softfloat.c b/fpu/softfloat.c\nindex 959a82636b..d51920652a 100644\n--- a/fpu/softfloat.c\n+++ b/fpu/softfloat.c\n@@ -1897,9 +1897,8 @@ floatx80_mul(floatx80 a, floatx80 b, float_status *status)\n  * Fused multiply-add\n  */\n \n-float16 QEMU_FLATTEN\n-float16_muladd_scalbn(float16 a, float16 b, float16 c,\n-                      int scale, int flags, float_status *status)\n+float16 float16_muladd_scalbn(float16 a, float16 b, float16 c,\n+                              int scale, int flags, float_status *status)\n {\n     FloatParts64 pa = float16_unpack_canonical(a, status);\n     FloatParts64 pb = float16_unpack_canonical(b, status);\n@@ -2114,8 +2113,8 @@ float64 float64r32_muladd(float64 a, float64 b, float64 c,\n     return float64r32_pack_raw(&pr);\n }\n \n-bfloat16 QEMU_FLATTEN bfloat16_muladd(bfloat16 a, bfloat16 b, bfloat16 c,\n-                                      int flags, float_status *status)\n+bfloat16 bfloat16_muladd(bfloat16 a, bfloat16 b, bfloat16 c,\n+                         int flags, float_status *status)\n {\n     FloatParts64 pa = bfloat16_unpack_canonical(a, status);\n     FloatParts64 pb = bfloat16_unpack_canonical(b, status);\n@@ -2130,8 +2129,8 @@ bfloat16 QEMU_FLATTEN bfloat16_muladd(bfloat16 a, bfloat16 b, bfloat16 c,\n     return pack_raw64(&pr, &bfloat16_params);\n }\n \n-float128 QEMU_FLATTEN float128_muladd(float128 a, float128 b, float128 c,\n-                                      int flags, float_status *status)\n+float128 float128_muladd(float128 a, float128 b, float128 c,\n+                         int flags, float_status *status)\n {\n     FloatParts128 pa = float128_unpack_canonical(a, status);\n     FloatParts128 pb = float128_unpack_canonical(b, status);\n","prefixes":["75/84"]}