         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.machine ppc
				.section	".text"
		.Ltext0:
				.align 2
				.globl main
		main:
		.LFB185:
		.LVL0:
				stwu 1,-16(1)
				mflr 0
				stw 0,20(1)
    2   ! This is a particularly nasty test as the i2c output depends on the --tidy flag.
				bl _imp_initialise
		.LVL1:
    3   ! - MONOP precedences are not compared properly against BINOP precedences.
    4   ! Note: imp2026 gets it right.
    5
    6   %integer i
    7
    8   i = -1 >> 1            ;! This imp construct actually should evaluate as: -(1>>1) which is 0!  Yes, it's documented.
    9
   10   write(i, 3) ; newline
				li 4,3
				li 3,0
				bl _imp_writeint
		.LVL2:
		.LBB8:
		.LBB9:
				bl _imp_newline
		.LVL3:
		.LBE9:
		.LBE8:
   11
   12   i = (-1) >> 1          ;! unsigned shift should pull in 0's at the top, returning MAX INT.
   13
   14   write(i, 3) ; newline
				li 4,3
				lis 3,0x7fff
				ori 3,3,0xffff
				bl _imp_writeint
		.LVL4:
		.LBB10:
		.LBB11:
				bl _imp_newline
		.LVL5:
		.LBE11:
		.LBE10:
		.LBB12:
		.LBB13:
				li 3,0
				bl exit
		.LVL6:
		.LBE13:
		.LBE12:
		.LFE185:
		.Letext0:
   15
   16 %endofprogram
    9 Statements compiled
