After the discussion that happened here (https://forums.atariage.com/topic/234634-rmacrln/?do=findComment&comment=5129447) I think it would be helpful for everyone if we added some checks against that.
Created attachment 199 [details] The patches! So here we go, this was apparently quite straightforward to do, just add a check during the fixups. I tested the fix with the following source (also, regression suite passed without hiccups): .globl external_value .globl external_value_2 move.l #external_value,d1 ;should be ok move.l #external_value<<11,d0 ;this should produce an error lsl.l #8,d1 lsl.l #3,d1 move.l #external_value_2,d0 ;should be ok
Thanks for the patch! :-)