[PATCH] Check value range for 16 bit immediate in load immediate intruction for bfin target of gas

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

[PATCH] Check value range for 16 bit immediate in load immediate intruction for bfin target of gas

jiez
I'll commit this patch in a short time to fix an issue of bfin target
of gas. Previously bfin target gas will silently accept such
instruction:

r0 = 0x12345678;

and translate it into

r0 = 0x5678 (X);

With this patch, gas will throw an "immediate out of range" error for
such instructions.

Jie

bfin-gas-2.diff (2K) Download Attachment