         Edinburgh IMP77 Compiler - Version 8.4
    1 ! test by:  ./i2c --stdout --tidy test/shiftadd.imp | fgrep "ATOM1 = "|head -1
		.Ltext0:
				.align	1
				.global	main
				.thumb
				.thumb_func
		main:
		.LFB185:
    2 %begin
				@ args = 0, pretend = 0, frame = 0
				@ frame_needed = 0, uses_anonymous_args = 0
		.LVL0:
				push	{r3, lr}
    3   %integer atom1
				bl	_imp_initialise(PLT)
		.LVL1:
		.LBB4:
		.LBB5:
				movs	r0, #0
				bl	exit(PLT)
		.LVL2:
		.LBE5:
		.LBE4:
		.LFE185:
		.Letext0:
    4
    5   atom1 = (atom1-106)>>1+91;     !a,an->v  na,nan->n
    6
    7   ! This minimal test seems to generate correct C but the same code in test/pass1.imp gives:
    8
    9   ! //   1226                                          atom1 = (atom1-106)>>1+91;     !a,an->v  na,nan->n
   10   ! ATOM1 = (unsigned int)ATOM1 - 106 >> 1 + 91;
   11
   12   ! reproduce it with: ./i2c --stdout --tidy test/pass1.imp | fgrep "ATOM1 = (unsigned int)ATOM1"
   13
   14 %endofprogram
    4 Statements compiled
