         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.machinemode zarch
				.machine "zEC12"
		.text
		.Ltext0:
				.align	8
		.globl main
		main:
		.LFB185:
		.LVL0:
				stmg	%r14,%r15,112(%r15)
				lay	%r15,-160(%r15)
    2   ! This is a particularly nasty test as the i2c output depends on the --tidy flag.
				brasl	%r14,_imp_initialise@PLT
		.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
				lghi	%r3,3
				lghi	%r2,0
				brasl	%r14,_imp_writeint@PLT
		.LVL2:
		.LBB8:
		.LBB9:
				brasl	%r14,_imp_newline@PLT
		.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
				lghi	%r3,3
				lgfi	%r2,2147483647
				brasl	%r14,_imp_writeint@PLT
		.LVL4:
		.LBB10:
		.LBB11:
				brasl	%r14,_imp_newline@PLT
		.LVL5:
		.LBE11:
		.LBE10:
		.LBB12:
		.LBB13:
				lghi	%r2,0
				brasl	%r14,exit@PLT
		.LVL6:
		.LBE13:
		.LBE12:
		.LFE185:
		.Letext0:
   15
   16 %endofprogram
    9 Statements compiled
