Message ID | 20190219061111.10231-6-jcmvbkbc@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 04C7114E1 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Feb 2019 06:24:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBE062B53A for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Feb 2019 06:24:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD0E62B550; Tue, 19 Feb 2019 06:24:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5D02F2B53A for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Feb 2019 06:24:33 +0000 (UTC) Received: from localhost ([127.0.0.1]:42485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1gvypU-00069k-KB for patchwork-qemu-devel@patchwork.kernel.org; Tue, 19 Feb 2019 01:24:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <jcmvbkbc@gmail.com>) id 1gvydS-0005Bx-HX for qemu-devel@nongnu.org; Tue, 19 Feb 2019 01:12:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <jcmvbkbc@gmail.com>) id 1gvydR-00073L-Tm for qemu-devel@nongnu.org; Tue, 19 Feb 2019 01:12:06 -0500 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:38870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <jcmvbkbc@gmail.com>) id 1gvydR-000731-M4 for qemu-devel@nongnu.org; Tue, 19 Feb 2019 01:12:05 -0500 Received: by mail-lj1-x22a.google.com with SMTP id j19so15591480ljg.5 for <qemu-devel@nongnu.org>; Mon, 18 Feb 2019 22:12:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R0tDnphj+/dmKTGapyn8B46quGINLj/1hxz95xI9yfM=; b=ubTXKkIadsTuCyMeygh92PPOjZ1JId/gGSXdw8SPJ9VPhtikAPFdo6bR1JnQL7+7s2 mCd46QjFI63g4MYBQVsT7WndMPdP2VOvjIK+RbXMjed1ea4OcT7aK1no45jdWLq9FuET H5cwIselD9eI7cI+H8P++TBEIhHSCWCxbjQooDFQ9vbe8L40gEPoZNXiSNGX7NZ9gq0R NN2gvrvo5cKOXWNycQK5Vhbum3Ngc0KutfDFGAQhRHtZa1Uo0Y5V033wvG/zGk9Su/mW UaLJYuQjZqRWN18IFckx8kOnxDz7VA6Ht17D717KFwrHq7QS6wjoESG4be8zr10hTady uJpQ== 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; bh=R0tDnphj+/dmKTGapyn8B46quGINLj/1hxz95xI9yfM=; b=fnwUqQ6jQDnia29/5Van0SmVh3QBRds7qoYYfNLU/YszA18uSKOOL8qGtJrA+9nTtp qTq1Z9SketF5TPpv47uJtwUoWogtW7VCrVZX6vfJblEHTy+Vhez3khG11ftfD4Tpiduu 6UoRE0XPTzKhEf9Cm53dH/9X5isYJw7HSQWtw+ZNbHnO+POPox32SSPwi84seEFTg0N4 /xW1DcGGV9o5o0aEUYWMhl7ou1gc3v0mkXiuBCRNIIlbf1rYAY0K0RJiptL0WgT/CsWp VIyCgIWHjPeX0OwNBbVPBf//aRtxr2C1HwDU5R9hZSCXlIvfvHg9BunBIqctzI4AXEb8 Zjrw== X-Gm-Message-State: AHQUAuaLfDesY1aKRbVIovMEMRBximqBbYlaQ+ERx+TeFVd3D041Iyme kga3vq8ObMNP6wAi2DJmSpjVLvjjrqk= X-Google-Smtp-Source: AHgI3IY9aWmH1f8qvP54ZK4Z7wGZohT19VxSK+O2MiXYmXLK1Gh5nxgDv0EWg42xJnrKgIGImhnZdQ== X-Received: by 2002:a2e:b1ca:: with SMTP id e10-v6mr16261576lja.16.1550556724093; Mon, 18 Feb 2019 22:12:04 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net. (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id f16-v6sm4235745lji.88.2019.02.18.22.12.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 22:12:03 -0800 (PST) From: Max Filippov <jcmvbkbc@gmail.com> To: qemu-devel@nongnu.org Date: Mon, 18 Feb 2019 22:10:53 -0800 Message-Id: <20190219061111.10231-6-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190219061111.10231-1-jcmvbkbc@gmail.com> References: <20190219061111.10231-1-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22a Subject: [Qemu-devel] [PATCH 05/23] tests/tcg/xtensa: don't use optional opcodes in generic code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Max Filippov <jcmvbkbc@gmail.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
tests/tcg/xtensa: conditionalize xtensa tests
|
expand
|
diff --git a/tests/tcg/xtensa/macros.inc b/tests/tcg/xtensa/macros.inc index 25c7ee479e6c..93825dc7b513 100644 --- a/tests/tcg/xtensa/macros.inc +++ b/tests/tcg/xtensa/macros.inc @@ -23,11 +23,14 @@ main: movi a0, result sub a2, a2, a0 movi a3, 0 - loopnez a2, 1f - l8ui a2, a0, 0 - or a3, a3, a2 - addi a0, a0, 1 + beqz a2, 2f 1: + l8ui a1, a0, 0 + or a3, a3, a1 + addi a0, a0, 1 + addi a2, a2, -1 + bnez a2, 1b +2: exit .endm
Don't use 'loop' opcode in generic testsuite completion code, only use core opcodes to make it work with any configuration. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- tests/tcg/xtensa/macros.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)