-
Bug
-
Resolution: Won't Fix
-
Low
-
Code Generation Tools
-
CODEGEN-8296
-
MSP430_20.2.2.LTS
-
default
-
Instruction accepted by assembler is valid.
Use the attached file. It contains four instructions that may not be valid. Build it ...
% cl430 test.s "test.s", ERROR! at line 3: [E0002] Illegal mnemonic specified swpb.b r5 "test.s", ERROR! at line 6: [E0002] Illegal mnemonic specified sxt.b r6 2 Assembly Errors, No Assembly Warnings Errors in Source - Assembler Aborted >> Compilation failure
Those error diagnostics appear to be correct. But should the other two instructions also get error diagnostics?
The GCC assembler does not have similar results.
% msp430-elf-gcc -o test.o test.s test.s: Assembler messages: test.s:11: Error: rrc: attempt to rotate the PC register
Since the two assemblers disagree, one of them must be wrong. Maybe they are both wrong.