[PATCH, Committed] Check register type for load immediate instruction in the bfin port of gas

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH, Committed] Check register type for load immediate instruction in the bfin port of gas

jiez
The load immediate instruction for Blackfin does not allow any one of
the sysregs (ASTAT, SEQSTAT, SYSCFG, RETI, RETX, RETN, RETE, RETS, LC0
and LC1, LT0 and LT1, LB0 and LB1, CYCLES, CYCLES2, and EMUDAT) as its
destination register. Previously Blackfin assembler would silently
accept the following illegal instructions and generate incorrect
result:

ASTAT=0;
SEQSTAT=0;
SYSCFG=0;
RETI=0;
RETX=0;
RETN=0;
RETE=0;
RETS=0;
LC0=0;
LC1=0;
LT0=0;
LT1=0;
LB0=0;
LB1=0;
CYCLES=0;
CYCLES2=0;
EMUDAT=0;

I have committed this patch to check the register type for load
immediate instruction. The assembler now should give errors on these
instructions.

Jie

gas-check-regtype-loadimm.diff (1K) Download Attachment