From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Max Filippov Date: Fri, 6 Apr 2012 02:46:51 +0400 Message-Id: <1333666012-16094-4-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1333666012-16094-1-git-send-email-jcmvbkbc@gmail.com> References: <1333666012-16094-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH 3/4] target-xtensa: add test for LEND invalidation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Max Filippov , Anthony Liguori 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 -- 1.7.7.6