From patchwork Mon May 17 16:10:13 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: 440155 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1238940jac; Mon, 17 May 2021 09:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyulH7F9XA2qoeOaqXWY3RFdPZ8JRSwwU7uj4O0IumAKTOmKlX48YcbrklvFoMORhMDyxhA X-Received: by 2002:a19:495b:: with SMTP id l27mr507487lfj.230.1621268668628; Mon, 17 May 2021 09:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621268668; cv=none; d=google.com; s=arc-20160816; b=Hp4QOZG0rswJ38t1SCTceWa4NczJx2SkZZdeGG8/DhJlfttYb04PNzY3KZPN7lM2yE 14SkP54hWyegF1yRqjxVDFy+sJHLJ8PKFBJUB+2nPLZiQTGBpHa54fGQnPygDK9OLcL7 BPN4KmKhh0OhxTMD7heinEf1l7MU+ObG4d9DlDrU/VGqn1g5JIKfCcOoap30yW3kOU1S LyV5BvLD9ZTkuOcrAhkE3CvQBY0KYiud2y740vkr92E483QJL8hs3BDqFLsNcu5cv3Rl av3voHG7vyjuc0tkvbSaOcupPmjIskJbk0FVoc1mgQSk0d052RQbBEooAb5ocRF/yk+z hJTQ== 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=AwHUKic2neBlh0Oqi4dLL3Doo9PeLOJuBwfn8ueZrao=; b=xKBANIXi/mu9RsbRjQGF7O9oMgBuWj0HNN6Nn5ZPqDI01R4mv4026WQyewSVh3Yn3f J/BnmODuap9bEEVcjXnfMjSuLzyafEK2MlBAZsPRJhQrm6rwSHd9yMjB5W/m83ezvcqN rgHYtN50VxpzEWTAiV0Pi0UoXgplircWZ/rmzqmmJCCvnuasbmVSLUvwugRyb1+s5gFh OtYuntK8weELYfeBdUMweB45/AeZuodqO6uF0PWVSLjkhz9SInm9kJTBLaShTuOAKIol ulmA8t44X6MuXbpULh1E+a/WBLgjHPjTa2TdXYJiyeoA6d5fZEewvOYMvxuv2hBS/QuO S0ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nQLN+uVe; 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 8si6917025lfm.400.2021.05.17.09.24.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 May 2021 09:24:28 -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=nQLN+uVe; 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]:40516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lig2d-00089G-Bq for patch@linaro.org; Mon, 17 May 2021 12:24:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lifyY-0001bw-Le for qemu-devel@nongnu.org; Mon, 17 May 2021 12:20:14 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lifyU-000246-Mw for qemu-devel@nongnu.org; Mon, 17 May 2021 12:20:14 -0400 Received: by mail-wr1-x42a.google.com with SMTP id x8so7035217wrq.9 for ; Mon, 17 May 2021 09:20:09 -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=AwHUKic2neBlh0Oqi4dLL3Doo9PeLOJuBwfn8ueZrao=; b=nQLN+uVe5MRaiv2Y8oHuR5Jc4YQ8J8mUVSlubZy68eMafs+P66i1tELFMgyR6xNho+ GofoHpMfQFPVazH1gaMev/qmd+iMEiWcr6qCfbMGWqRhjzVEcfWHstE0cZpiCLZKQo7O PKkS6feyxTkr2aigizS3TYGf2geveuxQ8zPn800AqlybSHRNqBw1h1a7Yy4JJiEYrDho +OG06vXM9enPc2kQMFKyYL+EJaiSBJ+ZzsUdiKpmVnGIDlw7O4SQGEgs21MMvrW4FGWn GLhPjMO8LQGXgbqNjCni+hjlp7RMw0Dxud4uKDCu6/ZrB9DOIJkFrpJe0b06ZPaZrNOh ao6w== 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=AwHUKic2neBlh0Oqi4dLL3Doo9PeLOJuBwfn8ueZrao=; b=WGarlKt2JOa2bnGScLtbogiNr9I+vi3A1dRGQJyhemIdxWmws/QRXKT8nzWGBx75qm dvqcKqeDUSgFNIcPqhVd4SeKJQ26/ID1iLJKJsxZPWyae4D29qGhIpNYvtZh9WqNawsD WiD7FfqQeneObxkUxENr4Jxhj3ecI/3ie7dAB2hFtUiqD7n6r2T+o03SwKSNulWgAro7 Up5SFTCspyCdgMzP6WM66JTvLoCZm1yldJ0xHbh9sTRJRuW6Im1WttTf/t56hUK8/P8z 7ERtO07+75m6rnKNV2yxy17PAu0dav7U03IQUymz9NZMLM0CrJ2g1jYWbNfl4zOVEU7w hrQg== X-Gm-Message-State: AOAM531sDcD1PerRpzXrwvNMH7ojam1pgY1vwlPy5eLZv4t+e46FAlkB mUs7T30IlQidlMmBctIWN7fk4A== X-Received: by 2002:adf:e70e:: with SMTP id c14mr600181wrm.104.1621268408246; Mon, 17 May 2021 09:20:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z9sm14997968wmi.17.2021.05.17.09.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 09:20:07 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 18D241FFA9; Mon, 17 May 2021 17:10:25 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 20/29] tests/tcg/tricore: Add msub test Date: Mon, 17 May 2021 17:10:13 +0100 Message-Id: <20210517161022.13984-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210517161022.13984-1-alex.bennee@linaro.org> References: <20210517161022.13984-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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 Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée Tested-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 +