From patchwork Mon Aug 12 00:44:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 818561 Delivered-To: patch@linaro.org Received: by 2002:a5d:5711:0:b0:367:895a:4699 with SMTP id a17csp1156793wrv; Sun, 11 Aug 2024 17:45:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUx5wdFrjbAqjDJ1HQ36pHTR64MWEn5dUP4NqciRF4IS2nGT2pa/oMaWQyrdxmRuWxuyjNzSLiOsKdBnpy1KklM X-Google-Smtp-Source: AGHT+IFBimo5EnEnFoJICSRuIZxYCZhuucB5MhTJcY7QmA9MpAGxK47av3JTun4wEGX85/EH5XrJ X-Received: by 2002:a05:6102:d92:b0:48f:42c8:e0a9 with SMTP id ada2fe7eead31-495d85d1f7fmr9976406137.26.1723423517308; Sun, 11 Aug 2024 17:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723423517; cv=none; d=google.com; s=arc-20160816; b=ctg7wmB30r/iLLF1JIPB2WcT7BCp++JSsCT5j5VvSqp9+hOAKHeY6sqAq7LSJQfJE9 L/Gp/C0gjBksTgVY5BSEOvJ5wxZC8a/0AKnbshJ388oF7Pif5GTP/dcN48MevqTgnN4A UdrjWl5tHURggsqtHL/uqTGuW+nymxIajHgbEDxvxDkFXEcmF1vd2gIedi03Fd4RSL7C sXIdvo2D/t0aMKNHhVj5V4/CX6XJ/fpvpOviIGYRDb9cCRmJFHUvpG7Pn5+zQf/D/chw FxA/zOJTf8LLc0t4ByUqeMN2zj0kVPFUyYHPYfkGhxbeVB5XYW1MUf/BxvhSn7gtzoKc s9DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=u47FnAda6gSQy1TJPew4WmYrmGo8lcQrSgewPMLMudI=; fh=2uesxoqJjyRqtkk3yTfcnBSFtAUtxw8KzQZeBUAogpM=; b=a3O0bN8IaxyBYqUsbDxjSBmpwojLauXm+NOSzFYltnBhAAp7U3HcgXpia59Q8cYqEY IBw5lDxr+3CZrAlrBt7Xdg3Br4q4io33o/W8SfNT0t4Ihkm8f/atG/mB4OW013pQM//P GaTfz5NnzPG5pPAHQycnvPokUmp2p2oFK/hbIuIlHN9JC23KPpHaFkIFPmrahS3gkt0a s6ufndxjp3CrFb3/mvnKbBBPCCSpptwN0JNhUNYFIIDlLCOfhMZnNeQGfJgZA9u0aNJ2 RIAPZhxAL6XQnptEE2iuPr+5Fko0zdqH9CbUNREWdqBQoz9Lax91EjZRivLsfCS5DPwG foVg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Sp8Ywk/K"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4531c2848bdsi53857221cf.421.2024.08.11.17.45.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Aug 2024 17:45:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Sp8Ywk/K"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdJBJ-0003cg-Q3; Sun, 11 Aug 2024 20:45:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdJBH-0003TI-3O for qemu-devel@nongnu.org; Sun, 11 Aug 2024 20:45:03 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdJBF-0001eX-4M for qemu-devel@nongnu.org; Sun, 11 Aug 2024 20:45:02 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-200aa78d35aso12554535ad.3 for ; Sun, 11 Aug 2024 17:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723423499; x=1724028299; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=u47FnAda6gSQy1TJPew4WmYrmGo8lcQrSgewPMLMudI=; b=Sp8Ywk/KDsY1h5pR/9eoz6dckkdsfGBG49D34XOhuRz5IhCUzvnix9sKN6RdizKgDK RFV4u+ErYulK0rtVp4xLD+q4LCqDnMnRktjmrT7O8b8ZDfbcVqWeMK+U1JRU19RkOlsD Eu+gtiNM8glX6Stj9pF9CVDjjuji3PfOgdwdb12CNvKlrOijY0ySLlfaqIw6OQ5hqbkS Qam0cegTUmDGYC4O0Vs1+vRiZ6EEYxxb63VgyB4lNQTkRVzUpt5DAeMlfd531UgC+QCU xyWGT45NjdJ09fYy7DhLLgDM0nz2n3oI7KWG3wJIyWsNX0nNInApa4CuS86KopCcBlLe I6Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723423499; x=1724028299; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u47FnAda6gSQy1TJPew4WmYrmGo8lcQrSgewPMLMudI=; b=DySdy5LKzgjUdikcleI/zPObPA8jx+U89bJDiwxsr0rCB9RX7ZPqRHgF+dxLAa4Xw8 FR5HMDRN4KoEdI7d7f4X4FKrM8YlVnauWCFORW0D9e73tU1lQr+gzIogQRNwoRsSJbXQ NujugLCC0FfDm2Bs/fSMIACDKdBFIIAn8H+cGUkHyga1LQGHeod8abJg6cqCibodaJ2c QyqQPCz0LD+K4/Fhxp+qL4etbawXx/I14Xu+q05BLlquZkI7r0XSZe4t4RxGHLJD+p/r l/e58vRmZEi3Y9ScCODmdB9R6w32umEl5vP+RkD3CrNzNWYrzudPStIG3NpeM+S+TuBK LmVg== X-Gm-Message-State: AOJu0YxHTusfgyISMxyXG39B7xFoo19pfk8eBxvNIuZG4v1+lVtKosQB RbDxezxgmIcMxiGmncwFCQf6V6OCyNbcrw51Gh7Go6FQ2YSgICy0C3SLt3Mp1y2JpKBi3RnzIBn hn3c= X-Received: by 2002:a17:903:2a8d:b0:1fb:5e1f:f5e1 with SMTP id d9443c01a7336-200ae5975famr56969505ad.26.1723423499232; Sun, 11 Aug 2024 17:44:59 -0700 (PDT) Received: from stoup.. ([203.30.4.111]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-200bbb3b758sm27089435ad.257.2024.08.11.17.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 17:44:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu Subject: [PATCH for-9.2 v2 0/4] target/m68k: Implement fmove.p Date: Mon, 12 Aug 2024 10:44:47 +1000 Message-ID: <20240812004451.13711-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Implement packed decimal real conversions. Changes for v2: * Generate the complete set of powers of 10 for floatx80. This was enough to get 9.9999999999999999e999 properly rounded. r~ Richard Henderson (4): target/m68k: Introduce M68K_FEATURE_FPU_PACKED_DECIMAL target/m68k: Implement packed decimal real loads target/m68k: Implement packed decimal real stores tests/tcg/m68k: Add packed decimal tests target/m68k/cpu.h | 2 + target/m68k/helper.h | 3 + target/m68k/cpu.c | 2 + target/m68k/fpu_helper.c | 201 ++ target/m68k/gen-floatx80-pow10.c | 30 + target/m68k/translate.c | 49 +- tests/tcg/m68k/packeddecimal-1.c | 41 + tests/tcg/m68k/packeddecimal-2.c | 42 + target/m68k/floatx80-pow10.c.inc | 4933 ++++++++++++++++++++++++++++++ tests/tcg/m68k/Makefile.target | 4 +- 10 files changed, 5293 insertions(+), 14 deletions(-) create mode 100644 target/m68k/gen-floatx80-pow10.c create mode 100644 tests/tcg/m68k/packeddecimal-1.c create mode 100644 tests/tcg/m68k/packeddecimal-2.c create mode 100644 target/m68k/floatx80-pow10.c.inc