Tighten the constraints for warning about NOPs for the MSP 430 ISA, so NOPs are only...
[deliverable/binutils-gdb.git] / gas / testsuite / gas / msp430 / nop-dint.s
1 .text
2
3 ;;; Test for NOP warnings when disabling interrupts, which are common to both
4 ;;; 430 and 430x ISA.
5 ;;; "MOV &FOO,r10" is used as an artbitrary statement which isn't a NOP, to
6 ;;; break up the instructions being tested.
7
8 ;;; Test NOP required after DINT
9 DINT
10
11 MOV &FOO,r10
12 ;;; Check aliases for which the GIE bit (bit 3) of the SR can be cleared
13 ;;; These should all cause warnings
14 BIC.W #8,R2
15 MOV &FOO,r10
16
17 BIC.W #8,SR
18 MOV &FOO,r10
19
20 MOV.W #0,R2
21 MOV &FOO,r10
22
23 MOV.W #7,R2
24 MOV &FOO,r10
25
26 MOV.W #0xf007,R2
27 MOV &FOO,r10
28
29 CLR R2
30 MOV &FOO,r10
31
32 ;;; The above hopefully covers the legitimate ways the SR might be cleared,
33 ;;; but there are other insns that can technically modify R2, but shouldn't be
34 ;;; used.
35
36 ;;; Test DINT at end of file
37 DINT
This page took 0.036752 seconds and 4 git commands to generate.