         Edinburgh IMP77 Compiler - Version 8.4
    1 ! check that sizeof/typeof was giving the expected value
		.Ltext0:
				.align	2
		TEST.7690:
		.LFB186:
    2 %begin
		.LVL7:
				sub	sp, sp, #1440
				stp	x29, x30, [sp]
				add	x29, sp, 0
				stp	x19, x20, [sp, 16]
				stp	x21, x22, [sp, 32]
				adrp	x2, :got:__stack_chk_guard
				ldr	x2, [x2, #:got_lo12:__stack_chk_guard]
				ldr	x3, [x2]
				str	x3, [x29, 1432]
				mov	x3,0
    3   %routine test(%name param)         ;! ia1          ia2
		.LVL0:
				stp	x29, x30, [sp, -16]!
				add	x29, sp, 0
				bl	_imp_initialise
		.LVL8:
		.LBB52:
    4     write(addr(param),0)  ; newline  ;! 2145833816   2145833816
				mov	w1, 0
				bl	_imp_writelong
		.LVL1:
		.LBB46:
		.LBB47:
				bl	_imp_newline
		.LVL2:
		.LBE47:
		.LBE46:
    5     write(sizeof(param),0); newline  ;! 1            8             1 is sizeof %byte, 8 is sizeof %longreal
				mov	w1, 0
				mov	x0, 16
				bl	_imp_writelong
		.LVL3:
		.LBB48:
		.LBB49:
				bl	_imp_newline
		.LVL4:
		.LBE49:
		.LBE48:
    6     write(typeof(param),0); newline  ;! 5            8             5 is typeof %byte, 8 is typeof %longreal
				mov	w1, 0
				mov	w0, 4
				bl	_imp_writeint
		.LVL5:
		.LBB50:
		.LBB51:
				bl	_imp_newline
		.LVL6:
		.LBE51:
		.LBE50:
    7   %end
    8
				ldp	x29, x30, [sp], 16
				ret
		.LFE186:
				.align	2
				.global	main
		main:
		.LFB185:
    9   %bytearray ia1(3:5)
   10   %longrealarray ia2(2:4,3:6)
   11
   12   printstring( "Testing ia1"); newline
				adrp	x22, .LANCHOR0
				add	x22, x22, :lo12:.LANCHOR0
				add	x21, x29, 1168
				mov	x19, 256
				mov	x2, x19
				mov	x1, x22
				mov	x0, x21
				bl	memcpy
		.LVL9:
				add	x20, x29, 400
				mov	x2, x19
				mov	x1, x21
				mov	x0, x20
				bl	memcpy
		.LVL10:
				mov	x2, x19
				mov	x1, x20
				mov	x0, x21
				bl	memcpy
		.LVL11:
		.LBE52:
		.LBB53:
		.LBB54:
				add	x20, x29, 48
				mov	x2, x19
				mov	x1, x21
				mov	x0, x20
				bl	memcpy
		.LVL12:
				mov	x0, x20
				bl	_imp_printstring
		.LVL13:
		.LBE54:
		.LBE53:
		.LBB55:
		.LBB56:
				bl	_imp_newline
		.LVL14:
		.LBE56:
		.LBE55:
   13   write(addr(ia1),0); newline     ;! 2145833816
				add	x21, x29, 1424
				mov	w1, 0
				mov	x0, x21
				bl	_imp_writelong
		.LVL15:
		.LBB57:
		.LBB58:
				bl	_imp_newline
		.LVL16:
		.LBE58:
		.LBE57:
   14   write(addr(ia1(3)),0); newline  ;! 2145833704
				mov	w1, 0
				mov	x0, x21
				bl	_imp_writelong
		.LVL17:
		.LBB59:
		.LBB60:
				bl	_imp_newline
		.LVL18:
		.LBE60:
		.LBE59:
   15   write(sizeof(ia1),0); newline   ;! 1                sizeof %btre
				mov	w1, 0
				mov	x0, 1
				bl	_imp_writelong
		.LVL19:
		.LBB61:
		.LBB62:
				bl	_imp_newline
		.LVL20:
		.LBE62:
		.LBE61:
   16   write(typeof(ia1),0); newline   ;! 5                typeof %byte
				mov	w1, 0
				mov	w0, 5
				bl	_imp_writeint
		.LVL21:
		.LBB63:
		.LBB64:
				bl	_imp_newline
		.LVL22:
		.LBE64:
		.LBE63:
   17   test(ia1)
				mov	x0, x21
				bl	TEST.7690
		.LVL23:
		.LBB65:
   18
   19   printstring( "Testing ia2"); newline
				add	x21, x29, 912
				mov	x2, x19
				add	x1, x22, x19
				mov	x0, x21
				bl	memcpy
		.LVL24:
				add	x22, x29, 656
				mov	x2, x19
				mov	x1, x21
				mov	x0, x22
				bl	memcpy
		.LVL25:
				mov	x2, x19
				mov	x1, x22
				mov	x0, x21
				bl	memcpy
		.LVL26:
		.LBE65:
		.LBB66:
		.LBB67:
				mov	x2, x19
				mov	x1, x21
				mov	x0, x20
				bl	memcpy
		.LVL27:
				mov	x0, x20
				bl	_imp_printstring
		.LVL28:
		.LBE67:
		.LBE66:
		.LBB68:
		.LBB69:
				bl	_imp_newline
		.LVL29:
		.LBE69:
		.LBE68:
   20   write(addr(ia2),0); newline      ;! 2145833816
				add	x19, x29, 304
				mov	w1, 0
				mov	x0, x19
				bl	_imp_writelong
		.LVL30:
		.LBB70:
		.LBB71:
				bl	_imp_newline
		.LVL31:
		.LBE71:
		.LBE70:
   21   write(addr(ia2(2,3)),0); newline ;! 2145833708      4 bytes after address of first element of ia1, i.e. ia1(3)
				mov	w1, 0
				mov	x0, x19
				bl	_imp_writelong
		.LVL32:
		.LBB72:
		.LBB73:
				bl	_imp_newline
		.LVL33:
		.LBE73:
		.LBE72:
   22                                     !                 which is 3 %byteinteger elements of 1 byte each, aligned to next 4 bytes.
   23   write(sizeof(ia2),0); newline    ;! 8               sizeof %longreal
				mov	w1, 0
				mov	x0, 32
				bl	_imp_writelong
		.LVL34:
		.LBB74:
		.LBB75:
				bl	_imp_newline
		.LVL35:
		.LBE75:
		.LBE74:
   24   write(typeof(ia2),0); newline    ;! 8               typeof %longreal
				mov	w1, 0
				mov	w0, 4
				bl	_imp_writeint
		.LVL36:
		.LBB76:
		.LBB77:
				bl	_imp_newline
		.LVL37:
		.LBE77:
		.LBE76:
   25   test(ia2)
				mov	x0, x19
				bl	TEST.7690
		.LVL38:
		.LBB78:
		.LBB79:
				mov	w0, 0
				bl	exit
		.LVL39:
		.LBE79:
		.LBE78:
		.LFE185:
				.section	.rodata
				.align	3
				.set	.LANCHOR0,. + 0
		.LC0:
				.byte	11
				.string	"Testing ia1"
				.zero	243
		.LC1:
				.byte	11
				.string	"Testing ia2"
				.zero	243
		.Letext0:
   26
   27 %endofprogram
   34 Statements compiled
