From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81009 invoked by alias); 1 May 2015 17:39:25 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 80988 invoked by uid 89); 1 May 2015 17:39:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_20,SPF_PASS,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 X-HELO: userp1040.oracle.com Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 01 May 2015 17:39:23 +0000 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t41HdLeq024533 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 May 2015 17:39:21 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t41HdLX2025157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 1 May 2015 17:39:21 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t41HdL6o001184 for ; Fri, 1 May 2015 17:39:21 GMT Received: from termi.us.oracle.com (/130.35.70.97) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 01 May 2015 10:39:21 -0700 From: "Jose E. Marchesi" To: binutils@sourceware.org Subject: [PATH 2/3] gas: added tests for the sparc natural instructions. Date: Fri, 01 May 2015 17:39:00 -0000 Message-Id: <1430502326-18816-3-git-send-email-jose.marchesi@oracle.com> In-Reply-To: <1430502326-18816-1-git-send-email-jose.marchesi@oracle.com> References: <1430502326-18816-1-git-send-email-jose.marchesi@oracle.com> X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00008.txt.bz2 gas/ChangeLog: 2015-05-01 Jose E. Marchesi * gas/sparc/natural-32.d: Test ldn, ldna, stn, stna, slln, srln, sran, casn, casna and clrn. * gas/sparc/natural-32.s: Likewise. * gas/sparc/natural.s: Likewise. * gas/sparc/natural.d: Likewise. --- gas/testsuite/ChangeLog | 8 ++++++++ gas/testsuite/gas/sparc/natural-32.d | 16 +++++++++++++--- gas/testsuite/gas/sparc/natural-32.s | 10 ++++++++++ gas/testsuite/gas/sparc/natural.d | 14 ++++++++++++-- gas/testsuite/gas/sparc/natural.s | 10 ++++++++++ 5 files changed, 53 insertions(+), 5 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 75fc289..4349f75 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2015-05-01 Jose E. Marchesi + * gas/sparc/natural-32.d: Test ldn, ldna, stn, stna, slln, srln, + sran, casn, casna and clrn. + * gas/sparc/natural-32.s: Likewise. + * gas/sparc/natural.s: Likewise. + * gas/sparc/natural.d: Likewise. + +2015-05-01 Jose E. Marchesi + * gas/sparc/natural.s: New file. * gas/sparc/natural-32.s: Likewise. diff --git a/gas/testsuite/gas/sparc/natural-32.d b/gas/testsuite/gas/sparc/natural-32.d index 039e45e..1fb1384 100644 --- a/gas/testsuite/gas/sparc/natural-32.d +++ b/gas/testsuite/gas/sparc/natural-32.d @@ -5,6 +5,16 @@ .*: +file format .* Disassembly of section .text: -0x00000000 b %icc, 0x00000008 -0x0+0000004 nop -0x0+0000008 nop +0x00000000 b %icc, 0x00000030 +0x00000004 nop +0x00000008 ld \[ %g1 \], %g2 +0x0000000c lda \[ %g1 \] #ASI_AIUP, %g2 +0x00000010 st %g1, \[ %g2 \] +0x00000014 sta %g1, \[ %g2 \] #ASI_AIUP +0x00000018 sll %g1, 0xa, %g2 +0x0000001c srl %g1, 0xa, %g2 +0x00000020 sra %g1, 0xa, %g2 +0x00000024 cas \[ %g1 \], %g2, %g3 +0x00000028 casa \[ %g1 \] #ASI_AIUP, %g2, %g3 +0x0000002c clr \[ %g1 \] +0x00000030 nop diff --git a/gas/testsuite/gas/sparc/natural-32.s b/gas/testsuite/gas/sparc/natural-32.s index 2a51441..544d170 100644 --- a/gas/testsuite/gas/sparc/natural-32.s +++ b/gas/testsuite/gas/sparc/natural-32.s @@ -2,4 +2,14 @@ .text ba %ncc, 0f nop + ldn [%g1], %g2 + ldna [%g1]#ASI_AIUP, %g2 + stn %g1, [%g2] + stna %g1, [%g2]#ASI_AIUP + slln %g1, 10, %g2 + srln %g1, 10, %g2 + sran %g1, 10, %g2 + casn [%g1], %g2, %g3 + casna [%g1]#ASI_AIUP, %g2, %g3 + clrn [%g1] 0: nop diff --git a/gas/testsuite/gas/sparc/natural.d b/gas/testsuite/gas/sparc/natural.d index e29c251..d0c1446 100644 --- a/gas/testsuite/gas/sparc/natural.d +++ b/gas/testsuite/gas/sparc/natural.d @@ -5,6 +5,16 @@ .*: +file format .* Disassembly of section .text: -0x0+0000000 b %xcc, 0x0+0000008 +0x0+0000000 b %xcc, 0x0+0000030 0x0+0000004 nop -0x0+0000008 nop +0x0+0000008 ldx \[ %g1 \], %g2 +0x0+000000c ldxa \[ %g1 \] #ASI_AIUP, %g2 +0x0+0000010 stx %g1, \[ %g2 \] +0x0+0000014 stxa %g1, \[ %g2 \] #ASI_AIUP +0x0+0000018 sllx %g1, 0xa, %g2 +0x0+000001c srlx %g1, 0xa, %g2 +0x0+0000020 srax %g1, 0xa, %g2 +0x0+0000024 casx \[ %g1 \], %g2, %g3 +0x0+0000028 casxa \[ %g1 \] #ASI_AIUP, %g2, %g3 +0x0+000002c clrx \[ %g1 \] +0x0+0000030 nop diff --git a/gas/testsuite/gas/sparc/natural.s b/gas/testsuite/gas/sparc/natural.s index 2a51441..544d170 100644 --- a/gas/testsuite/gas/sparc/natural.s +++ b/gas/testsuite/gas/sparc/natural.s @@ -2,4 +2,14 @@ .text ba %ncc, 0f nop + ldn [%g1], %g2 + ldna [%g1]#ASI_AIUP, %g2 + stn %g1, [%g2] + stna %g1, [%g2]#ASI_AIUP + slln %g1, 10, %g2 + srln %g1, 10, %g2 + sran %g1, 10, %g2 + casn [%g1], %g2, %g3 + casna [%g1]#ASI_AIUP, %g2, %g3 + clrn [%g1] 0: nop -- 2.3.4