Fix tic54x testsuite failures and Lmem disassembly bugs.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / tic54x / sections.s
index dbe42e12b200d2650da7ad34d81349e651613e94..35819d73b0f68200e4d240cde95225806b7d1487 100644 (file)
@@ -1,72 +1,73 @@
-*      \r
-* Various sections directives\r
-* .bss, .data, .sect, .text, .usect\r
-* .align, .space, .bes\r
-*      \r
-        ; default section (should be .text)\r
-       .word   0x1234          ; this should be put in .text\r
-       \r
-        ; initialized data\r
-       .data\r
-       .global coeff\r
-coeff  .word   011h,022h,033h\r
-       \r
-        ; uninitialized data\r
-       .global B1, buffer\r
-       .bss    buffer, 10\r
-B1:    .usect  ".bss", 10      ; alocate 10 words      \r
-\r
-        ; more initialized data in .data\r
-       .global ptr\r
-ptr    .word   0123h\r
-\r
-        ; .text section\r
-       .text\r
-       .global add, aloop\r
-add:   ld      0fh,a\r
-aloop: sub     #1,a\r
-       bc      aloop,ageq              \r
-\r
-        ; more initialized data into .data\r
-       .data\r
-       .global ivals\r
-ivals  .word   0aah, 0bbh, 0cch\r
-\r
-        ; define another section for more variables\r
-       .global var2, inbuf, align2\r
-var2   .usect  "newvars", 1    ; with quotes\r
-inbuf  .usect  newvars, 7, 1   ; w/o quotes, block 7 words\r
-align2 .usect  newvars, 15, ,1 ; 15 words aligned\r
-\r
-        ; more code\r
-       .text\r
-       .global mpy, mloop\r
-mpy:   ld      0ah,b\r
-mloop: mpy     #0ah,b\r
-       bc      mloop,bnov\r
-       .global space, bes, spacep, besp\r
-space: .space  64                      ; points to first word of block\r
-bes:   .bes    64                      ; points to last word of block\r
-spacep:        .word   space\r
-besp:  .word   bes     \r
-       .global pk1, pk2, pk3, endpk1, endpk2, endpk3\r
-pk1:   .space  20\r
-endpk1: .space 12      \r
-pk2:   .bes    20\r
-endpk2 .bes    12              \r
-pk3:   .space  20\r
-endpk3:        .bes    12              \r
-        ; named initialized section (TI assembler marks this as DATA, not CODE)\r
-       .sect   "vectors"\r
-       .word   011h, 033h\r
-       \r
-        ; named, initialized section, no quotes  (TI assembler marks as DATA)\r
-       .sect clink\r
-       .clink                  ; mark section clink as STYP_CLINK\r
-       .word   022h, 044h\r
-       \r
-       .sect   "blksect"  ; (TI assembler marks this as DATA)\r
-       .word   0x1234,0x4321\r
-       .sblock "blksect", vectors ; set block flag on blksect and vectors\r
-\r
-       .end\r
+*      
+* Various sections directives
+* .bss, .data, .sect, .text, .usect
+* .align, .space, .bes
+*      
+        ; default section (should be .text)
+       .word   0x1234          ; this should be put in .text
+       
+        ; initialized data
+       .data
+       .global coeff
+coeff  .word   011h,022h,033h
+       
+        ; uninitialized data
+       .global B1, buffer
+       .bss    buffer, 10
+B1:    .usect  ".bss", 10      ; alocate 10 words      
+
+        ; more initialized data in .data
+       .global ptr
+ptr    .word   0123h
+
+        ; .text section
+       .text
+       .global add, aloop
+add:   ld      0fh,a
+aloop: sub     #1,a
+       bc      aloop,ageq              
+
+        ; more initialized data into .data
+       .data
+       .global ivals
+ivals  .word   0aah, 0bbh, 0cch
+
+        ; define another section for more variables
+       .global var2, inbuf, align2
+var2   .usect  "newvars", 1    ; with quotes
+inbuf  .usect  newvars, 7, 1   ; w/o quotes, block 7 words
+align2 .usect  newvars, 15, ,1 ; 15 words aligned
+
+        ; more code
+       .text
+       .global mpy, mloop
+mpy:   ld      0ah,b
+mloop: mpy     #0ah,b
+       bc      mloop,bnov
+       .global space, bes, spacep, besp
+space: .space  64                      ; points to first word of block
+bes:   .bes    64                      ; points to last word of block
+spacep:        .word   space
+besp:  .word   bes     
+       .global pk1, pk2, pk3, endpk1, endpk2, endpk3
+pk1:   .space  20
+endpk1: .space 12      
+pk2:   .bes    20
+endpk2 .bes    12              
+pk3:   .space  20
+endpk3:        .bes    12              
+        ; named initialized section (CODE)
+       .sect   "vectors"
+        nop
+       nop
+       
+        ; named, initialized section, no quotes  (DATA)
+       .sect clink
+       .clink                  ; mark section clink as STYP_CLINK
+       .word   022h, 044h
+       
+       .sect   "blksect"  ; (DATA)
+       .word   0x1234,0x4321
+       .sblock "blksect", vectors ; set block flag on blksect and vectors
+
+       .end
This page took 0.045342 seconds and 4 git commands to generate.