gdb: Convert language la_word_break_characters field to a method
[deliverable/binutils-gdb.git] / gas / testsuite / gas / msp430 / bad.s
1 .text
2 .cpu 430x
3
4 ;;; Test for the assembler detecting spurious size modifiers.
5
6 mov.z r1, r2
7 mov.abc r1, r2
8 mov.bcd r1, r2
9 mov.wcd r1, r2
10 mov. r1, r2
11 bis.a #8, r2
12
13 ;;; FIXME: Add more tests of assembler error detection here.
14
15 ;; A NOP is needed *before* an EINT instruction.
16 eint
17 nop
18 ;; And *after* a DINT instruction.
19 dint
20
21 ;; Changing interrupt states in two successive instructions
22 ;; might cause an interrupt to be missed. The assembler
23 ;; should warn about this, if the -mz command line option
24 ;; is used.
25 eint
26 dint
27 nop ;; No warning needed here.
28 dint
29 and #1, r11 ;; Any instruction will do, not just NOPs.
30 clr r2 ;; Aliases should trigger the warning too.
31 mov #1, r2
32 BIC #8, SR
33 BIS #8, SR
34 MOV.W #1, SR
35 ;; We will also get a warning if the last instruction in the file
36 ;; changes the interrupt state, since this file could be linked
37 ;; with another that starts with an interrupt change.
This page took 0.030156 seconds and 4 git commands to generate.