gas: added tests for the sparc natural instructions.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 1 May 2015 17:14:11 +0000 (10:14 -0700)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 6 May 2015 16:27:52 +0000 (09:27 -0700)
gas/ChangeLog:

2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>

* 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
gas/testsuite/gas/sparc/natural-32.d
gas/testsuite/gas/sparc/natural-32.s
gas/testsuite/gas/sparc/natural.d
gas/testsuite/gas/sparc/natural.s

index 347fbb2407a7b3020664bea1cdea82a79c84cab2..6339bff8640710fd718ea6c5ea4e4aecdfe44155 100644 (file)
@@ -1,3 +1,11 @@
+2015-05-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * 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-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
 
 
index 039e45edc14ca275ebfa7f875b538f26a1e80fc8..1fb13848566a2ba6a8d04544adfe3bdc98aae72b 100644 (file)
@@ -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 
index 2a51441992110773f3531fa6d3434df4a037aa29..544d1709e8c1b6d6b036cef10cff140713944234 100644 (file)
@@ -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
index e29c251f1a28d7718dbfe3976a755462bc98f852..d0c144649f92c547f83a73fef846fbdc2f4210e5 100644 (file)
@@ -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 
index 2a51441992110773f3531fa6d3434df4a037aa29..544d1709e8c1b6d6b036cef10cff140713944234 100644 (file)
@@ -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
This page took 0.028197 seconds and 4 git commands to generate.