From patchwork Mon Apr 19 14:54:30 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: 424014 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp2802735jaf; Mon, 19 Apr 2021 08:08:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxViXEfS8p8GwqC/H13rC38Hcs9UxUWS6qD3vnXsJWNSkw5bQKvVOkewxKLTbyN1uoox08K X-Received: by 2002:a92:d48c:: with SMTP id p12mr18815642ilg.136.1618844916850; Mon, 19 Apr 2021 08:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618844916; cv=none; d=google.com; s=arc-20160816; b=uugYMLiANhk67U8r5cTt8ZIUXm43WvN+v7aqUtPs+ay+6/EImwXIoL/5F6VBDXFzOR y5cMVlWpepiBWkrOtcp6z9FTqtBZpTmDcdoaw1t4iLOdpyAYaAZbvt9suJnluA1eHyqv wGwqD8yWYUEMkY3baIzbFD4nnP62b+mxCDa2MmYbVBISYbcDY4vjuWoG8aEqtHFmbUZq uD1HP2gjWD6jHuzuqwsQ0hdMFj5dF+Fkx3KIj57rWcwDl5Xe1ME/GJZtQRbuc40l9hCb 6A54TE6R98itOE/rz6Ds/G2Jqs+erXwc8PXi4lNY7GgY5UOcKLNKS74QmeO+NkhSVQ+S TimA== 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=np1gaZVZhTNvKxm8FNo3UyxZzlTNbaBL/YyqUBHfOqM=; b=M+zxLNwcmnp645JTcWLDr9P7lwt7gbhLAUQVDieArKnDzJGGysdi0vVGXommjkNpDm Rufk1kHpdALQavdjn7MXFxmnjfE1A/dpQ69Gso/1x9KcQ++ZOoy3qLYWnojtf+zon4/4 ZJQ0n6KsaMHbmigurTBsoYfmDbyS7UjsJtZ/Pghw9cVedZtF5DcnJ4o48QtkVtCDt/OL yOVZVqvqJ/R35QKsutpXM9ebwe6e7/mA7NXa1l2BE1wXIYA9aX6YCoo7dwZy/G1vaRA6 aoRQ+hAOydyQsjgTZoexnTJBmqGY4eo8K3vjAAZk8OGJXC8BGwb/OChI/3XmDrhhYVfK lhbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SxQkKmej; 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 e19si16496409iob.40.2021.04.19.08.08.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Apr 2021 08:08:36 -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=SxQkKmej; 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]:60326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVVs-0003fS-AI for patch@linaro.org; Mon, 19 Apr 2021 11:08:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYVQR-0004N5-P5 for qemu-devel@nongnu.org; Mon, 19 Apr 2021 11:03:00 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYVQA-0002sm-Mp for qemu-devel@nongnu.org; Mon, 19 Apr 2021 11:02:59 -0400 Received: by mail-wm1-x331.google.com with SMTP id y124-20020a1c32820000b029010c93864955so20764863wmy.5 for ; Mon, 19 Apr 2021 08:02:42 -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=np1gaZVZhTNvKxm8FNo3UyxZzlTNbaBL/YyqUBHfOqM=; b=SxQkKmejjrh82xAAnnveYZbNZp2etX6wmRTgjfujuuYpKU6bM7RJewQlYnvrQbuoIu x+t0f3JnATfhUjc5eBev8A1CcC8QGhI9A3wezovENS90ZgFMCv42IJQjeFZ5j01zo3zu xqE2YZbIbf3gdAcsgQq4UV1+F+mEkuP3apPWigWerFbJtLnSfHs2G0oLh2t/iiWlnlY0 TdmRXMr0WBQ5y1DpTgsVt2zb4ych0LLUFvhiWJgLTAAt6y5eydB2DZPtRnoRFiTvmH47 XR8ULJmfBcUNgn9KTlcsQ89hFXmGCespSsL14oHdGgPjE20cc/r15ovsUEbwb+8KZFW2 sDew== 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=np1gaZVZhTNvKxm8FNo3UyxZzlTNbaBL/YyqUBHfOqM=; b=MKt0GXtY2+Rb9SGnqTumggWvmYkB8pmtIYmDu16sLbu75ESax3MT0cehJjZ9q3hsjs voi4LCR8GqUTTtMHYDLZPlEraVW43Axi5OGfRjrRCD49ePNH3C7nM4mNnujF5lBwjywd usxfAT4l4kv7jbSlZT99gdstoYd+n6LU3xMHdkD891Nl3u7CjZr/7GMUUIISrbGhV2Ca +3rKmphvPxWwb8nucBA6FHtQ1wOPPMDSKB7yFb+kOnLgOmMOpkiW5/yqa+8KYu9NU2Z0 ks1d1Nkj4GHBxn93PLsX96jjiv7eutsLGoUkgtZHoJdT9ae3S0ayiojVnm+Oo2yDqne1 TMKQ== X-Gm-Message-State: AOAM533VLQ/QAD2vAodaLfzDJCnCHlOSeNAAvKjkFMSbWpYPdvf07IJR KANt6au0X9Ya6kCflNivAImraw== X-Received: by 2002:a05:600c:4f54:: with SMTP id m20mr21632058wmq.58.1618844561317; Mon, 19 Apr 2021 08:02:41 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i4sm24076195wrx.56.2021.04.19.08.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 08:02:36 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9573C1FFA9; Mon, 19 Apr 2021 15:54:37 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 20/25] tests/tcg/tricore: Add fadd test Date: Mon, 19 Apr 2021 15:54:30 +0100 Message-Id: <20210419145435.14083-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210419145435.14083-1-alex.bennee@linaro.org> References: <20210419145435.14083-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net 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-11-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/Makefile.softmmu-target.orig | 1 + tests/tcg/tricore/test_fadd.S | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/tcg/tricore/test_fadd.S -- 2.20.1 diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/Makefile.softmmu-target index 799b51191e..e7adb16af9 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -7,6 +7,7 @@ TESTS += test_abs.tst TESTS += test_bmerge.tst TESTS += test_clz.tst TESTS += test_dvstep.tst +TESTS += test_fadd.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel diff --git a/tests/tcg/tricore/Makefile.softmmu-target.orig b/tests/tcg/tricore/Makefile.softmmu-target.orig index a9b81545e2..799b51191e 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target.orig +++ b/tests/tcg/tricore/Makefile.softmmu-target.orig @@ -6,6 +6,7 @@ ASFLAGS = TESTS += test_abs.tst TESTS += test_bmerge.tst TESTS += test_clz.tst +TESTS += test_dvstep.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel diff --git a/tests/tcg/tricore/test_fadd.S b/tests/tcg/tricore/test_fadd.S new file mode 100644 index 0000000000..1a65054803 --- /dev/null +++ b/tests/tcg/tricore/test_fadd.S @@ -0,0 +1,16 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DD_PSW(add.f, 1, 0x7fc00000, 0x00000b80, 0xffffff85, 0x00001234) + TEST_D_DD_PSW(add.f, 2, 0xf9c00000, 0x00000b80, 0xf9400000, 0xf9400000) + TEST_D_DD_PSW(add.f, 3, 0x8bb858ca, 0x00000b80, 0x8b3858ca, 0x8b3858ca) + TEST_D_DD_PSW(add.f, 4, 0x00000000, 0x00000b80, 0x000000ff, 0x00000000) + TEST_D_DD_PSW(add.f, 5, 0x7fc00000, 0x00000b80, 0xfffffe52, 0x0a4cf70c) + TEST_D_DD_PSW(add.f, 6, 0x9e6d5076, 0x84000b80, 0x9ded50ec, 0x9ded4fff) + TEST_D_DD_PSW(add.f, 7, 0x00000000, 0x04000b80, 0x0000e8bd, 0x00000000) + TEST_D_DD_PSW(add.f, 8, 0x7fc00000, 0xc4000b80, 0xffad546e, 0xffad546e) + TEST_D_DD_PSW(add.f, 9, 0x7fc00000, 0x04000b80, 0xfffe0000, 0x08130000) + + TEST_PASSFAIL +