* gas/z8k/ctrl-names.d: New file.
authorChristian Groessler <chris@groessler.org>
Fri, 5 Dec 2003 23:37:02 +0000 (23:37 +0000)
committerChristian Groessler <chris@groessler.org>
Fri, 5 Dec 2003 23:37:02 +0000 (23:37 +0000)
* gas/z8k/ctrl-names.s: New file.
* gas/z8k/z8k.exp: Run new tests.

gas/testsuite/ChangeLog
gas/testsuite/gas/z8k/ctrl-names.d [new file with mode: 0644]
gas/testsuite/gas/z8k/ctrl-names.s [new file with mode: 0644]
gas/testsuite/gas/z8k/z8k.exp

index 80243a47c2d376dcf8de9bed57513b85956a705a..84052ea99980d43bfc5e4d307abdfd9751dae76b 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-06  Christian Groessler  <chris@groessler.org>
+
+       * gas/z8k/ctrl-names.d: New file.
+       * gas/z8k/ctrl-names.s: New file.
+       * gas/z8k/z8k.exp: Run new tests.
+
 2003-12-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
 
        * gas/m32r/m32r2.exp: New file for m32r2.
diff --git a/gas/testsuite/gas/z8k/ctrl-names.d b/gas/testsuite/gas/z8k/ctrl-names.d
new file mode 100644 (file)
index 0000000..ecf004f
--- /dev/null
@@ -0,0 +1,41 @@
+#as:
+#objdump: -d
+#name: jmp cc
+
+.*: +file format coff-z8k
+
+Disassembly of section \.text:
+
+00000000 <\.text>:
+   0:  7d02            ldctl   r0,fcw
+   2:  7d0a            ldctl   fcw,r0
+   4:  7d03            ldctl   r0,refresh
+   6:  7d0b            ldctl   refresh,r0
+   8:  7d04            ldctl   r0,psapseg
+   a:  7d0c            ldctl   psapseg,r0
+   c:  7d05            ldctl   r0,psapoff
+   e:  7d0d            ldctl   psapoff,r0
+  10:  7d05            ldctl   r0,psapoff
+  12:  7d0d            ldctl   psapoff,r0
+  14:  7d06            ldctl   r0,nspseg
+  16:  7d0e            ldctl   nspseg,r0
+  18:  7d07            ldctl   r0,nspoff
+  1a:  7d0f            ldctl   nspoff,r0
+  1c:  7d07            ldctl   r0,nspoff
+  1e:  7d0f            ldctl   nspoff,r0
+  20:  7d02            ldctl   r0,fcw
+  22:  7d0a            ldctl   fcw,r0
+  24:  7d03            ldctl   r0,refresh
+  26:  7d0b            ldctl   refresh,r0
+  28:  7d04            ldctl   r0,psapseg
+  2a:  7d0c            ldctl   psapseg,r0
+  2c:  7d05            ldctl   r0,psapoff
+  2e:  7d0d            ldctl   psapoff,r0
+  30:  7d05            ldctl   r0,psapoff
+  32:  7d0d            ldctl   psapoff,r0
+  34:  7d06            ldctl   r0,nspseg
+  36:  7d0e            ldctl   nspseg,r0
+  38:  7d07            ldctl   r0,nspoff
+  3a:  7d0f            ldctl   nspoff,r0
+  3c:  7d07            ldctl   r0,nspoff
+  3e:  7d0f            ldctl   nspoff,r0
diff --git a/gas/testsuite/gas/z8k/ctrl-names.s b/gas/testsuite/gas/z8k/ctrl-names.s
new file mode 100644 (file)
index 0000000..6557c2c
--- /dev/null
@@ -0,0 +1,35 @@
+       .text
+
+       ldctl   r0,fcw
+       ldctl   fcw,r0
+       ldctl   r0,refresh
+       ldctl   refresh,r0
+       ldctl   r0,psapseg
+       ldctl   psapseg,r0
+       ldctl   r0,psapoff
+       ldctl   psapoff,r0
+       ldctl   r0,psap
+       ldctl   psap,r0
+       ldctl   r0,nspseg
+       ldctl   nspseg,r0
+       ldctl   r0,nspoff
+       ldctl   nspoff,r0
+       ldctl   r0,nsp
+       ldctl   nsp,r0
+
+       LDCTL   R0,FCW
+       LDCTL   FCW,R0
+       LDCTL   R0,REFRESH
+       LDCTL   REFRESH,R0
+       LDCTL   R0,PSAPSEG
+       LDCTL   PSAPSEG,R0
+       LDCTL   R0,PSAPOFF
+       LDCTL   PSAPOFF,R0
+       LDCTL   R0,PSAP
+       LDCTL   PSAP,R0
+       LDCTL   R0,NSPSEG
+       LDCTL   NSPSEG,R0
+       LDCTL   R0,NSPOFF
+       LDCTL   NSPOFF,R0
+       LDCTL   R0,NSP
+       LDCTL   NSP,R0
index 967437cd749be4f3ec2ff9823253b4923a90b315..60cbca5776ac76710a636592ea811579adb9657c 100644 (file)
@@ -41,4 +41,8 @@ if [istarget z8k-*-*] then {
 
      run_dump_test "jmp-cc"
      run_dump_test "ret-cc"
+
+# ctrl names test
+
+     run_dump_test "ctrl-names"
 }