From patchwork Wed May 12 10:20:38 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: 435498 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4701125jao; Wed, 12 May 2021 03:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5dRrb/FL9z7ANoMq1wHdx9msK0mtidPOoRU06YMiT6fqHZqOWZ6KO8spXbOTzx/ibY8U9 X-Received: by 2002:ac8:5655:: with SMTP id 21mr33222376qtt.187.1620816131954; Wed, 12 May 2021 03:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816131; cv=none; d=google.com; s=arc-20160816; b=K6mKyCOpXX1SxGmoPhHdjHKAhfBD8zy34pF0FuQjkbUbIpuAGCf2ndoBd6p7fLXF5C Kkm4/mrhF1moaheXagJpBQ5xbE1TidlQuJcU4DAdxNCzCgUutRnK4/EH7LVVMnYepeLK ZFQMt6pZE3baqTOT1qWQwH0aJxHtKxKnjq6ncv71JW6XFh8vTM3rvjFP2UxTKyPkA4EG 1uEz5Tt+EUqjLuussgbc9uYcQWd3MOqIJo16Vi6ur9OPszjABnSHBqDazaSqG6lcxxvV UBPlND0h9LCV/98MGSkL8+qv8P+Pvx0RsboVQCsBmiOgKtWcQp+u8vLmmnSSNolqetem 0iDw== 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=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=FR7/3bCark42sclt1VDQ5ZBxarAHlSz6I8qF+SdHT0mwfE6OGkFR0YkEXEKJlsiug0 y7tWh27R4i8UH8V+kFzo2AfZ51ifVbUdUGIMStkai0zOpHVwIaE0A5G9cZ4Ao+oy1sYo u+ft2IHh8EJWQMZLug+Vpm1FUUUm4jmEaVYmIaHv0xny+GHjMqRs2Ko76Du7ITct3KS9 QK0wVIfbtgylZSJio1qQwTS+jOLyN7AXwqvY5xGjs6ud+JB6j5l4nPprNeVsTvJ9An1U OSZrnpv/lrR82UvPx/Yzx+mIH3BJBeBxMglYABHtSK7I7iYICsstzaDKBDC7vh0rA1Ao OqiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vYm3n9aI; 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 b16si4172698qvi.214.2021.05.12.03.42.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:42:11 -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=vYm3n9aI; 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]:35754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmJf-0006pS-Aq for patch@linaro.org; Wed, 12 May 2021 06:42:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgmI2-0004Hx-0D for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:30 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:51955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgmHy-0006Ms-LI for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:29 -0400 Received: by mail-wm1-x336.google.com with SMTP id u133so1254030wmg.1 for ; Wed, 12 May 2021 03:40:26 -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=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=vYm3n9aIbWkvu5NCQnLit2T0Y3CL5USOGhRjKitlcjDhzcssmcJykxGCOpAbx088sJ e366noke9rJI7rhnHyx4pGTbGCL3s+kbNnzrjqayLNH+01dky2TCvhATyk67Vi0EGO+g JiHQVi4Oh10C1AB9BpJdtL6tBAP9/myJTZACXI0lCng5Y5SIQrHljnpALv8+gDA5vtIs jhP6EDElhZle5qLEWxQS6s2Z2LtnF3/Eze49J1lqvhAksl+Q3cO/TDZGHERwlzZyucQs RI/ENIqFnSNWnIO5cHprS6Cy+flBjN+eT6G+cmDmOr9p4Q9k1I77MvqTU/aZLs6MJi9S GQaA== 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=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=h2stgih6s9HtWtb0/8Uayk9T0ZVT3IdQ5Vr6D/mSaDlmhjkfyIbAfjeagh1zp9rP2U 1Q8v2W4jvwNZkHZO/xxzYn0Bc3+PyeWfSVi8ZJ6LYDJzkyenDCOhnFbam+hB5mR0s6j1 X4S2wzx885l/MwKbi54mua+w5N2fklL5k+pc/AOSU/eRFEjTtprULX0Xvz6u8s3w4yWn Voh9TAaEbGUdWpxA8WQ4X00bgTbnAj52QwBo5Sfqn6EzlSXn1iEztk78MnPkC09ARxSq BK0iDuxFHG+5aSQ6PP6VNUZIdW4B2f668jNNp6D2O/DkLEPbs53X58aPM/i6t+ayh+t/ ZxUA== X-Gm-Message-State: AOAM530skbNpgYy7k79vWwFGduXiO/SGRM7JHN6bZKRkCL3RAo1NzF6M TsXd5tAhXSEPtisVnd2BZzvnxg== X-Received: by 2002:a05:600c:190f:: with SMTP id j15mr10662282wmq.57.1620816025220; Wed, 12 May 2021 03:40:25 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id d127sm5720416wmd.14.2021.05.12.03.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:40:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EB64A1FFA6; Wed, 12 May 2021 11:20:52 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 18/31] tests/tcg/tricore: Add clz test Date: Wed, 12 May 2021 11:20:38 +0100 Message-Id: <20210512102051.12134-19-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::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.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 [AJB: dropped duplicate Makefile] Signed-off-by: Alex Bennée Message-Id: <20210305170045.869437-9-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_clz.S | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/tcg/tricore/test_clz.S -- 2.20.1 diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/Makefile.softmmu-target index de6a2cc88e..a9b81545e2 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -5,6 +5,7 @@ ASFLAGS = TESTS += test_abs.tst TESTS += test_bmerge.tst +TESTS += test_clz.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel diff --git a/tests/tcg/tricore/test_clz.S b/tests/tcg/tricore/test_clz.S new file mode 100644 index 0000000000..e03835f123 --- /dev/null +++ b/tests/tcg/tricore/test_clz.S @@ -0,0 +1,9 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_D(cls.h, 1, 0x0, 0x6db17976) + TEST_D_D(cls.h, 2, 0x000f000f, 0x0) + + TEST_PASSFAIL +