From patchwork Tue May 18 09:07:10 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: 441177 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp42392jac; Tue, 18 May 2021 02:20:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiQicrzEEfi92VK+A1P8ahhbGbFz1D7olzZRECJk7GINkMnFCMJ7HV/FSRwX5eBN/bgEk0 X-Received: by 2002:ab0:a8b:: with SMTP id d11mr3619719uak.75.1621329602753; Tue, 18 May 2021 02:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621329602; cv=none; d=google.com; s=arc-20160816; b=OBy94jClGWkpW6FtaTze7Mo8aqq0aClTPaQG8sTMUcQleWH0nGMjuOtehFp5ySlXao /mHVZSDxLrYiEBMcSrr9O/wS4CwYEodMU5SWwiDZeb5i5AzwQP46Ic3Tx2T0ReNZEXHI LfvC+UYVrZhRmeXb+LZ4295lmHaVCuiSVWZZoLDR9A4q552CqIh+CZHNqf/aAReDiL7e uPXZJfZa9FkDu9JiwGqKz97MN9wmJhpQa327SidHqwr15zq05PaWZwtWWKk4i/0mMG6e gv/Ahw4779PLwJF3pYNOWCmcQiLaMVZDP55An78+L8u8upd6VsEJn1dRJ4e+Uxi76Obm MT1g== 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=LXn6aPVAVt/bVyPUARbsnNGDxpKekSthuNr53hK5qyQ=; b=m1B+8tn1anXgxHDiGjEpwHhBzI2Qni5f0r/DpXXtmgHcf7mIUW6kMlwNzqFwMu5lcd ioDWj+WRv9ArYN2Znz1ZmZZpu8fTSW24Y8427Ktq8aLwkrUKLXxeRPbxXcLECJIU7Vqw +OlgxgDDNEEiG7j+8v821MYJc0osUM+nBrvQJJy20spIgH/76TyW8qpeai7xsvTn779C tX36fnHuiNAIv0/Fr2t8MXV3YMYlNdd1FS//iCWCEydQbvMv3TAW9HDizZ6egF/qNc9T 8GK+yrb9tylTm4/hyPpmR4rPSur50WycOEpny6J4Itk2n6Lh29P55NUOau75WuPzY9ij hpFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GyoWwF+X; 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 x14si6335506uaj.44.2021.05.18.02.20.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 May 2021 02:20:02 -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=GyoWwF+X; 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]:58818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1livtS-0000dB-1z for patch@linaro.org; Tue, 18 May 2021 05:20:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1livhe-0008Nf-Mi for qemu-devel@nongnu.org; Tue, 18 May 2021 05:07:50 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:38835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1livhc-0005Zh-6c for qemu-devel@nongnu.org; Tue, 18 May 2021 05:07:50 -0400 Received: by mail-wr1-x42d.google.com with SMTP id j14so7588536wrq.5 for ; Tue, 18 May 2021 02:07:45 -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=LXn6aPVAVt/bVyPUARbsnNGDxpKekSthuNr53hK5qyQ=; b=GyoWwF+XO8HTInltMoa+RABt6hmJD9fHppPCM0KbM/6f/aMAEfZaF0pfuVdMjrjpSe XZhEmk8zt0CagbqAyOjWaZRaQgpfIozjB43NIMMhWGHtnrJkaVpdFXcUzRwyZcpDRgWu w307TqAmrVa5EqVJfWjNbDILgjKfg/nsoY1jxCHX5jfGBAAWRfME92XCnL0Z2koVA+TA qhWjdzPHPF7u8ni0b8naYZEtRvn+EYOaXHciRQEDsPSoVkBV/whfL8mFVj5A/RDsYGbQ f1anmNpCyPr1IU0Ah11BEeQl+BZCnE3rv/KPOdd5Ybf3sm4VqnlxmPm8liw0vXaQeEM/ 6hug== 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=LXn6aPVAVt/bVyPUARbsnNGDxpKekSthuNr53hK5qyQ=; b=HTBlXztVrgmpXxq9TiST3J7W61hagvYo5Xp4BA/tS+8D31EamyazsXm3S2V3e9I1hU Rypjau3kboXKuwIr6pXjC4uNW7DX+/QkQgmDvb43V4QC2VuIZ6m/PXYL/xxRrSIMlU/A z1jhQU9p+kgk04W8dEXOFGVm4R9plHUsUBbcbj2cWu4HzRTlDzBXikVo9zYymQFWT4Iq QxYaim9LNei1M2UQijhdhRsiz8dDPRHb1ORnPYdWwN2iNJUcc49ncY0VLxLiqzzEf8rg JInbPaH1PvgZD8S6qZpNoWleFfXm+w4bhPBM+H29OhUUBFEsodMZWVgkhcuY6KUtKRS5 49bA== X-Gm-Message-State: AOAM532+OwtDf6TZlEJuLhe8kOd5V4hwJy3NTbGcxD6NMM+JnHk31sNV x2dp1Ymx4yIDIHNuDgSNeBuGVA== X-Received: by 2002:a5d:6b43:: with SMTP id x3mr5508455wrw.263.1621328864591; Tue, 18 May 2021 02:07:44 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v18sm24759598wro.18.2021.05.18.02.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 02:07:42 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B64041FF7E; Tue, 18 May 2021 10:07:22 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 19/29] tests/tcg/tricore: Add fadd test Date: Tue, 18 May 2021 10:07:10 +0100 Message-Id: <20210518090720.21915-20-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-11-kbastian@mail.uni-paderborn.de> Message-Id: <20210512102051.12134-21-alex.bennee@linaro.org> -- 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 +