* gas/tic80/{align.d, align.lst, align.s} New test for the
authorFred Fish <fnf@specifix.com>
Thu, 27 Feb 1997 22:29:33 +0000 (22:29 +0000)
committerFred Fish <fnf@specifix.com>
Thu, 27 Feb 1997 22:29:33 +0000 (22:29 +0000)
".align" pseudop.
* gas/tic80/tic80.exp: Run the align test.

gas/testsuite/ChangeLog
gas/testsuite/gas/tic80/align.d [new file with mode: 0644]
gas/testsuite/gas/tic80/align.lst [new file with mode: 0644]
gas/testsuite/gas/tic80/align.s [new file with mode: 0644]
gas/testsuite/gas/tic80/tic80.exp

index f592fa4c1664481acef3a64e6051a7a6823a63f1..027f3b3d3a2765c2a1f28e340a19c84d0ff8df33 100644 (file)
@@ -1,4 +1,10 @@
 start-sanitize-tic80
+Thu Feb 27 15:21:46 1997  Fred Fish  <fnf@cygnus.com>
+
+       * gas/tic80/{align.d, align.lst, align.s} New test for the
+       ".align" pseudop.
+       * gas/tic80/tic80.exp: Run the align test.
+       
 Wed Feb 26 20:36:46 1997  Fred Fish  <fnf@cygnus.com>
 
        * gas/tic80/{float.d, float.lst, float.s}: New tests for
diff --git a/gas/testsuite/gas/tic80/align.d b/gas/testsuite/gas/tic80/align.d
new file mode 100644 (file)
index 0000000..88f9610
--- /dev/null
@@ -0,0 +1,19 @@
+#objdump: -d
+#name: TIc80 .align pseudo op
+
+.*: +file format .*tic80.*
+
+Disassembly of section .text:
+
+00000000 <.text>:
+   0:  ab 00 00 00.*
+   4:  cd 00 ef 00.*
+   8:  f1 00 00 00.*
+   c:  ee 00 00 00.*
+  10:  ac 00 00 00.*
+  14:  00 00 00 00.*
+  18:  ab 00 00 00.*
+  1c:  00 00 00 00.*
+  20:  fe 00 00 00.*
+       \.\.\.
+  30:  de ad be ef.*
diff --git a/gas/testsuite/gas/tic80/align.lst b/gas/testsuite/gas/tic80/align.lst
new file mode 100644 (file)
index 0000000..915415a
--- /dev/null
@@ -0,0 +1,47 @@
+MVP MP Macro Assembler     Version 1.13     Thu Feb 27 17:02:23 1997
+Copyright (c) 1993-1995    Texas Instruments Incorporated 
+
+align.s                                                              PAGE    1
+
+        1                     ;;      Test the .align directive.
+        2                     
+        3 00000000                    .text
+        4                             
+        5                             ;; This should generate 0xAB000000
+        6 00000000   AB               .byte   0xAB
+        7 00000001                    .align                  ; Should default to 4 byte alignment
+        8                     
+        9                             ;; This should generate 0xCD00EF00
+       10 00000004   CD               .byte   0xCD
+       11                             .align  2               ;  Should align to the next 2-byte boundary (pad with one null byt
+       12 00000006   EF               .byte   0xEF
+       13                             .align  1
+       14                     
+       15                             ;; This should generate 0xF1000000
+       16 00000007                    .align  4               ;  Should not affect alignment (already on 4)
+       17 00000008   F1               .byte   0xF1
+       18 00000009                    .align  4               ;  Should align to next 4 byte boundary
+       19                     
+       20                             ;; This should generate 0xEE000000 since we are already on 4 byte alignment
+       21 0000000C   EE               .byte 0xEE
+       22 0000000D                    .align  8
+       23                     
+       24                             ;; This should generate 0xAC000000 0x00000000
+       25 00000010   AC               .byte   0xAC
+       26 00000011                    .align  8
+       27                             
+       28                             ;; This should generate 0xAB000000 0x00000000 since we are at 8 byte alignment
+       29 00000018   AB               .byte   0xAB
+       30 00000019                    .align  16
+       31                     
+       32                             ;; This should generate 0xFE000000 0x00000000 0x00000000 0x00000000
+       33 00000020   FE               .byte   0xFE
+       34 00000021                    .align  16
+       35                             
+       36                             ;; This just forces the disassembler to not print ... for trailing nulls
+       37 00000030   DE               .byte 0xDE, 0xAD, 0xBE, 0xEF
+          00000031   AD       
+          00000032   BE       
+          00000033   EF       
+
+ No Errors,  No Warnings
diff --git a/gas/testsuite/gas/tic80/align.s b/gas/testsuite/gas/tic80/align.s
new file mode 100644 (file)
index 0000000..02c1256
--- /dev/null
@@ -0,0 +1,37 @@
+;;     Test the .align directive.
+
+       .text
+       
+       ;; This should generate 0xAB000000
+       .byte   0xAB
+       .align                  ; Should default to 4 byte alignment
+
+       ;; This should generate 0xCD00EF00
+       .byte   0xCD
+       .align  2               ;  Should align to the next 2-byte boundary (pad with one null byte)
+       .byte   0xEF
+       .align  1
+
+       ;; This should generate 0xF1000000
+       .align  4               ;  Should not affect alignment (already on 4)
+       .byte   0xF1
+       .align  4               ;  Should align to next 4 byte boundary
+
+       ;; This should generate 0xEE000000 since we are already on 4 byte alignment
+       .byte 0xEE
+       .align  8
+
+       ;; This should generate 0xAC000000 0x00000000
+       .byte   0xAC
+       .align  8
+       
+       ;; This should generate 0xAB000000 0x00000000 since we are at 8 byte alignment
+       .byte   0xAB
+       .align  16
+
+       ;; This should generate 0xFE000000 0x00000000 0x00000000 0x00000000
+       .byte   0xFE
+       .align  16
+       
+       ;; This just forces the disassembler to not print ... for trailing nulls
+       .byte 0xDE, 0xAD, 0xBE, 0xEF
index e64d9bae6e45170614d17abc7db5e6b303f71d0e..49c4633996f79236e92b5d0aa3ea0708b0c93ad9 100644 (file)
@@ -17,4 +17,5 @@ if [istarget tic80*-*-*] then {
     run_dump_test "relocs1b"
     run_dump_test "relocs2"
     run_dump_test "relocs2b"
+    run_dump_test "align"
 }