From patchwork Tue May 18 09:07:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 441189 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp52616jac; Tue, 18 May 2021 02:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+diNY1HlWlWbTaq1remU9YpVSfvMUuQJSjLGo1xVXmqvlQiX7OUcBdW/BQsp2Wb0w2cEJ X-Received: by 2002:a25:f504:: with SMTP id a4mr6375094ybe.150.1621330609656; Tue, 18 May 2021 02:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621330609; cv=none; d=google.com; s=arc-20160816; b=jSZnCfSh8dv62DF/x+X6a14VXUdihVE7PFxNgB07dV4crRMpUo0r/CQ7TqKm3qvbCT j+crSOeqwoYRGHwOrzgLcdReG6ih7vZtjjhVEXOqlbRxLNfEdYVAmqfdGDxIEyshnR37 nF9rRUqpkOpnPdTxLZFqxGOEU7K8Inm8hO0GlRMK6a/KC4yKnvj2UUCUuDxp65LL5kOS +MtjIoAoRnSr2vevzDzuRlZFCYn8vOtSSWqPZ8dzh+LXaSrBwSXAd+l6cCALff3Q4yJY pTLL62NTjAKB/djBjgt0910mZ6gaHcAS9AYfhhS2r4ND1mZbojafAJvTJMWb0PijTC07 x+qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=jcmdAYe0KwSyd2gVv/xFHxAZ2fE+u7+DYM1mPJLmcY8=; b=0Q6Kl+XR646wsJz2HxYRTjiYq53Ycqyz+JzphsqO8P8YGpfcs1VRRGI2rLXycG4xr6 DHmHKMrIsQylAleHI/I8ILYM0Ecfs87GotuLbD1VhKXDgPw3Ylf10kLLxDukwdGsLQhh nb573Y5wl/cFoteAWZHFkTGF0fJqd/eSJJM3Qo5WxKlXN8KrXHoZCaS+zkBxH5U4csiz cfdJmf295473PV69efe9qkhtA71JBw1JcmlgDvrtsTdlsofry/nHa7UFh9oEZjSvH13b 9kGrn1I3p9EIUDRgulcwdzsByGcApcqI7LbeLQ8maoJDl5fRJWPjQUAapf5uexnYFNFu g+XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NCUfcYSJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q129si20461206ybc.242.2021.05.18.02.36.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 May 2021 02:36:49 -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=fail header.i=@linaro.org header.s=google header.b=NCUfcYSJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liw9h-0007aG-3z for patch@linaro.org; Tue, 18 May 2021 05:36:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1livpE-00059G-9M for qemu-devel@nongnu.org; Tue, 18 May 2021 05:15:40 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:42740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1livp0-00012U-Qb for qemu-devel@nongnu.org; Tue, 18 May 2021 05:15:39 -0400 Received: by mail-wr1-x42d.google.com with SMTP id x8so9345190wrq.9 for ; Tue, 18 May 2021 02:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jcmdAYe0KwSyd2gVv/xFHxAZ2fE+u7+DYM1mPJLmcY8=; b=NCUfcYSJFkk8Depp/8l85q6h2DiYVdhtrudpmslvVsYOI3te5XlzU+nh4Tphy2JPMS gfzX8iNER/jW0wPUfinOLbEJMefyqPOPw0TxT7st1giEHI+AJiwy83tDWG84kx+T60GC PQClv1jDzmK25v4gd96n3lifzTb9FSSpwkyKHtD8I/wx7vBgs97VKN7YEvFy89mJxvAL Moe173RPiM5GiiA9bkHX3ISOye0rzp0AXYIiU9qhKo4CT7icaqEQgsUcOxD/+S3hLG/w VvVDRL8FPaJObQ7dx7DMiC3xWQ4XfkEUJbMK6yCw793/dpphr1F7A+gf7td4NPHclwJv w+gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jcmdAYe0KwSyd2gVv/xFHxAZ2fE+u7+DYM1mPJLmcY8=; b=FXeusEVEDJuD8niG08GE1uSFualVz4OqLGzGxsiwP+/zTMFeTdEA1nfhpw1LUQ8est NYwHN6eRvAcJ7sjbmA7LR3mWB5RQOoB2GTTct1a1U8cw/dQH+4pElBR25vOQtOcPpwdB /DLqSfEC2Tn/zslvr5uCPhOv49jeAs5boMnBlW0GssdV7/7X+XxaBOEndCcaIns+Fu7A iX4XZCzpoEugBgxXblVtImBmNN09r5m1Hj/DsOI8ZLcRURpjRsOj+A+4LApAe56I9vvt 7z91sVO5dLUF+ArQQpwSrtrLvomoTXJZcSD9Wyc+We++L3wLSNcJVdbMKCKe3NGLUD46 KmlQ== X-Gm-Message-State: AOAM533qtMiHK6yZYye7z5+BhZUCe9PiG5nVBp38loHio/qC16XqwDp7 grrc8RclCiVsAaR0QyH9oXKIe/jxcV5Aww== X-Received: by 2002:adf:d081:: with SMTP id y1mr5428333wrh.179.1621329320689; Tue, 18 May 2021 02:15:20 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l8sm1838716wry.55.2021.05.18.02.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 02:15:18 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1F9F01FFAC; Tue, 18 May 2021 10:07:23 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 23/29] tests/tcg/tricore: Add msub test Date: Tue, 18 May 2021 10:07:14 +0100 Message-Id: <20210518090720.21915-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210518090720.21915-1-alex.bennee@linaro.org> References: <20210518090720.21915-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastian Koppelmann , =?utf-8?q?Alex_Be?= =?utf-8?b?bm7DqWU=?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée Message-Id: <20210305170045.869437-15-kbastian@mail.uni-paderborn.de> Message-Id: <20210512102051.12134-25-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/Makefile.softmmu-target index 8de005523e..0fe6a86482 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -11,6 +11,7 @@ TESTS += test_fadd.tst TESTS += test_fmul.tst TESTS += test_ftoi.tst TESTS += test_madd.tst +TESTS += test_msub.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel diff --git a/tests/tcg/tricore/test_msub.S b/tests/tcg/tricore/test_msub.S new file mode 100644 index 0000000000..6dee87d99c --- /dev/null +++ b/tests/tcg/tricore/test_msub.S @@ -0,0 +1,9 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DDI_PSW(msub, 1, 0xd2fbe5e0, 0x00000b80,0x64003300, 0xff5420d4, -216) + TEST_D_DDI_PSW(msub, 2, 0xfffffc10, 0x00000b80,0xfffffe68, 0xfffffffd, -200) + TEST_D_DDD_PSW(msubs.u, 3, 0x0, 0x60000b80, 0x1, 0xffffffff, 0xffffffdb) + TEST_PASSFAIL +