From patchwork Thu Apr 5 22:46:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 151065 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A5236B7022 for ; Fri, 6 Apr 2012 14:35:07 +1000 (EST) Received: from localhost ([::1]:60773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFvTD-0001pN-UB for incoming@patchwork.ozlabs.org; Thu, 05 Apr 2012 18:47:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFvT2-0001fe-Qr for qemu-devel@nongnu.org; Thu, 05 Apr 2012 18:47:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFvT0-0001IH-81 for qemu-devel@nongnu.org; Thu, 05 Apr 2012 18:47:48 -0400 Received: from mail-bk0-f45.google.com ([209.85.214.45]:49470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFvSz-0001HV-Ty for qemu-devel@nongnu.org; Thu, 05 Apr 2012 18:47:46 -0400 Received: by mail-bk0-f45.google.com with SMTP id jg9so2020179bkc.4 for ; Thu, 05 Apr 2012 15:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=qLw0vEAjaTKutKIwRmuDTSKd6Hdvi737n1Rfg8Vv8g0=; b=WB03yHz9rGt+BoKGhMz4mU2aBDxYfXzkSvP2dVTe2X28ae6yyzjsQJogpWLRlu8Z+S Nfrq84ey+Lx+7z2AjSMKS2kbMkiefcj9lFZaB6c8EB8h+HzXXuuMIiiBTzBOixX8dhvL OfnCCMBQ73XGtLgPrlvfhrbkbK8EA3Am3yzRnPYIGzNnlAQJbx5Py2Enqgds/cjeAwfV yY7/JhKMH79+Lq5ykZ0NoEaDRRiL1OMz1RM9sikOSutgv2MowesYk0MBvDQSCyVY3pxF FuLc3MVhcyLHN1DEX/TD4aPiDBvzVc5wUS0b6l/eTmV+/Q/Rjq1SWECGnrOWpKoPLhMZ jl/A== Received: by 10.204.129.21 with SMTP id m21mr2217198bks.124.1333666064907; Thu, 05 Apr 2012 15:47:44 -0700 (PDT) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPS id s16sm11241402bkt.3.2012.04.05.15.47.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 15:47:44 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Fri, 6 Apr 2012 02:46:51 +0400 Message-Id: <1333666012-16094-4-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1333666012-16094-1-git-send-email-jcmvbkbc@gmail.com> References: <1333666012-16094-1-git-send-email-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.45 Cc: Blue Swirl , Max Filippov , Anthony Liguori Subject: [Qemu-devel] [PATCH 3/4] target-xtensa: add test for LEND invalidation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Max Filippov --- tests/tcg/xtensa/test_loop.S | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/tests/tcg/xtensa/test_loop.S b/tests/tcg/xtensa/test_loop.S index a5ea933..9ebc18d 100644 --- a/tests/tcg/xtensa/test_loop.S +++ b/tests/tcg/xtensa/test_loop.S @@ -74,4 +74,29 @@ test loop_excm assert eqi, a2, 1 test_end +test loop_invalidation + movi a2, 0 + movi a3, 5 + movi a4, 1f + movi a5, 2f + wsr a3, lcount + wsr a4, lbeg + wsr a5, lend + isync + j 1f +.align 4 +1: + addi a2, a2, 1 +2: + beqi a3, 3, 1f + assert eqi, a2, 6 + movi a3, 3 + wsr a3, lcount + wsr a4, lend + isync + j 1b +1: + assert eqi, a2, 7 +test_end + test_suite_end