From patchwork Wed May 12 10:20:40 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: 435492 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4698783jao; Wed, 12 May 2021 03:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb/w45HK5mm1YEcDtuWGh7AARTK1WoOWkFjxoIIeMBQ3LCXMqD5CoSHrkP+ZrsrbafFcJR X-Received: by 2002:a67:f7c9:: with SMTP id a9mr31724775vsp.30.1620815899533; Wed, 12 May 2021 03:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815899; cv=none; d=google.com; s=arc-20160816; b=y3w3tUY0i4Mrys97EbRfb2BoJtKN3I5xYCgpIsRsymaTWdQriOP4EFIMlw+N0wwR2S VkHFVXdrOxSjMWBRSIpriCaLsO7qWuVVWxQEfCyDYocIMfLukedJVYnpGnFnTimd2EFH hvmO0Q7LkU/LLz2leovqT8RHXXP4JfppyLd9jCCgTDBPBhD4dpF1ZYXjyP97tu1pUojO 2yJGKXHjsqMPUM15SypD/1kIB0HLNYZogONMV4QQoMO3eDeLSqYjwPGUizsm38Ney3BX gs2X0HX271Cq035TPvUZeVrwC5cB7/Pe4iVPxL0q9mYVzoY8ihuADODIZbFwZLdyRpxP ERqw== 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=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=I34ejneazv9NcTBAHmwlJFu6Qw7Z4KntIBFJxnZdoj7qrmQiPBhouEaJK2p/VKoO2I srDK03qhs/xaALKSEt1nD/J7/cxTJdRexZUIAoLgqfzHyFK9XuYZK7Z00fTUT/fmPJ/g CjwMuWiHP+jmAQqwU9p9auFXL2VIUWmhGpb9teuY+OQ39VvZJ99MutTbxD/L9DdhNJOj ewJSUm5P58B96+rX4X5lDMvGAhB02c7fp57U8RqLzKDpMbcYs95P93gpqJDNXm+POH8h 5jMZsqpOmDcO2+HixHsH8B9QC9EMhnEDw0eh9q9Kb3BlSH54fAWtPqIk+3TRFAcHp9TU EoQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RfDL8Boh; 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 l39si10645143uae.257.2021.05.12.03.38.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:38:19 -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=RfDL8Boh; 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]:52006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmFu-00075q-V8 for patch@linaro.org; Wed, 12 May 2021 06:38:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzU-00047n-Cx for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:20 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:46593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzP-0003kY-7j for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:20 -0400 Received: by mail-wr1-x434.google.com with SMTP id x5so23038962wrv.13 for ; Wed, 12 May 2021 03:21:14 -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=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=RfDL8BohfdpYSp2/CNbyobkpF0VqLUPwlAIN4iTZyczT9cna58dZCL0aHUC/XowMew npINx01nLcG297XiiKbsbEjPrc30NADsLjjWf23axmPo3GkGfo1pyJ2YirK7ECIZB6tE +s4qhdZlhSF8DXkHVIBAWlx2Inp6daWdSBvQj/ZHhPZ4ebhZsI5qbi9aSOqOVotuO6e0 /1yEBbupSl46Zx86a1SPErLIB/nVkZ8JV7GkVBSmEUdxPyJ1FXLO2HFkP3r/3GeKnP43 Wby/4fEhTSOcEiIzCjcFjlJpwl1y82A7K3Jlf4rlkqMdWYHvyVkpur+hrc4u4YuIhESk 4zzg== 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=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=aK8iHRa2iV8JOTOkwRgc52dc9hLpzEeVC3VNUTXNLsH4Tksmepwy8fkEyYSWFxTmf4 pUmvggKopzDYwbkgj5MpIoMD8BjDAdo1NSD4rGaokkJ3dIhaIhXpW42WeGrJ8yU/Y8Jx RT8AWGRiGt/RNqyRxdyP34mZbW0tsrdqmLos5cqH6HCKPhoz35/Oy7FpyGnL6NN7laqN 9zkfIMTfyvbTnEA7sQ/YBPDhSUJat82lH+acGdjXCvmU4xIrdH5BJtY36duwhSUDd7r0 BwzBNJ9IkQ64AH4sk7J9YhqdWnVkmF8rteg+SDT7gv1HOjTfjA3U4USHS/8uQ5iIM0S3 Kh5A== X-Gm-Message-State: AOAM533YWfSFXCEHxgasZHbSMS/gRZsVDw7ub7VyNRriZw7Hfk5PftCt 0DYQvdPo4scTGJa7m44EZvDCpA== X-Received: by 2002:a5d:400f:: with SMTP id n15mr40094132wrp.274.1620814873872; Wed, 12 May 2021 03:21:13 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f8sm23630982wmg.43.2021.05.12.03.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:21:09 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2C6591FFAA; Wed, 12 May 2021 11:20:53 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 20/31] tests/tcg/tricore: Add fadd test Date: Wed, 12 May 2021 11:20:40 +0100 Message-Id: <20210512102051.12134-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.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/test_fadd.S | 16 ++++++++++++++++ 2 files changed, 17 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/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 +