Create  Edit  Diff  FrontPage  Index  Search  Changes  Login

FizzBuzzAsm_parisc64

Version

% gcc -v
Using built-in specs.
Target: hppa-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.4-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libssp --enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu
Thread model: posix
gcc version 4.3.4 (Debian 4.3.4-1) 

Optimized


fizzbuzz.o:     file format elf32-hppa-linux


Disassembly of section .text:

00000000 <main>:
   0:	6b c2 3f d9 	stw rp,-14(sp)
   4:	6f cb 01 00 	stw,ma r11,80(sp)
   8:	6b ca 3f 09 	stw r10,-7c(sp)
   c:	6b c9 3f 11 	stw r9,-78(sp)
  10:	6b c8 3f 19 	stw r8,-74(sp)
  14:	6b c7 3f 21 	stw r7,-70(sp)
  18:	6b c6 3f 29 	stw r6,-6c(sp)
  1c:	6b c5 3f 31 	stw r5,-68(sp)
  20:	6b c4 3f 39 	stw r4,-64(sp)
  24:	6b c3 3f 41 	stw r3,-60(sp)
  28:	34 03 00 02 	ldi 1,r3
  2c:	23 84 81 11 	ldil L%-77778000,ret0
  30:	37 87 11 12 	ldo 889(ret0),r7
  34:	23 94 4c cc 	ldil L%66668000,ret0
  38:	37 84 0c cf 	ldo -1999(ret0),r4
  3c:	23 8a 4a aa 	ldil L%55554000,ret0
  40:	37 86 2a ac 	ldo 1556(ret0),r6
  44:	23 80 00 00 	ldil L%0,ret0
			44: R_PARISC_DIR21L	.LC3
  48:	37 8a 00 00 	ldo 0(ret0),r10
			48: R_PARISC_DIR14R	.LC3
  4c:	23 80 00 00 	ldil L%0,ret0
			4c: R_PARISC_DIR21L	.LC2
  50:	37 89 00 00 	ldo 0(ret0),r9
			50: R_PARISC_DIR14R	.LC2
  54:	23 80 00 00 	ldil L%0,ret0
			54: R_PARISC_DIR21L	.LC1
  58:	37 8b 00 00 	ldo 0(ret0),r11
			58: R_PARISC_DIR14R	.LC1
  5c:	23 80 00 00 	ldil L%0,ret0
			5c: R_PARISC_DIR21L	.LC0
  60:	37 88 00 00 	ldo 0(ret0),r8
			60: R_PARISC_DIR14R	.LC0
  64:	34 05 00 ca 	ldi 65,r5
  68:	22 60 00 00 	ldil L%0,r19
			68: R_PARISC_DIR21L	.LC4
  6c:	36 73 00 00 	ldo 0(r19),r19
			6c: R_PARISC_DIR14R	.LC4
  70:	2e 60 10 16 	fldd 0(r19),fr22
  74:	0f c3 12 81 	stw r3,-10(sp)
  78:	27 c1 10 17 	fldw -10(sp),fr23
  7c:	3a f6 57 16 	xmpyu fr23,fr22R,fr22
  80:	2f c1 12 16 	fstd fr22,-10(sp)
  84:	0f c1 10 9c 	ldw -10(sp),ret0
  88:	0f c9 10 9d 	ldw -c(sp),ret1
  8c:	d0 74 1c 1f 	extrw,s r3,0,1,r20
  90:	08 f4 02 13 	and r20,r7,r19
  94:	0a 7c 04 1c 	sub ret0,r19,ret0
  98:	d3 9c 1f 83 	extrw,s ret0,28,29,ret0
  9c:	0a 9c 04 1c 	sub ret0,r20,ret0
  a0:	d6 7c 08 84 	depw,z ret0,27,28,r19
  a4:	0b 93 04 13 	sub r19,ret0,r19
  a8:	88 73 20 20 	cmpb,<> r19,r3,c0 <main+0xc0>
  ac:	22 60 00 00 	ldil L%0,r19
			ac: R_PARISC_DIR21L	.LC5
  b0:	e8 40 00 00 	b,l b8 <main+0xb8>,rp
			b0: R_PARISC_PCREL17F	puts
  b4:	08 08 02 5a 	copy r8,r26
  b8:	e8 00 01 50 	b,l 168 <main+0x168>,r0
  bc:	34 63 00 02 	ldo 1(r3),r3
  c0:	36 73 00 00 	ldo 0(r19),r19
			c0: R_PARISC_DIR14R	.LC5
  c4:	2e 60 10 16 	fldd 0(r19),fr22
  c8:	0f c3 12 81 	stw r3,-10(sp)
  cc:	27 c1 10 17 	fldw -10(sp),fr23
  d0:	3a f6 57 16 	xmpyu fr23,fr22R,fr22
  d4:	2f c1 12 16 	fstd fr22,-10(sp)
  d8:	0f c1 10 9c 	ldw -10(sp),ret0
  dc:	0f c9 10 9d 	ldw -c(sp),ret1
  e0:	d0 74 1c 1f 	extrw,s r3,0,1,r20
  e4:	08 94 02 13 	and r20,r4,r19
  e8:	0a 7c 04 1c 	sub ret0,r19,ret0
  ec:	d3 9c 1f c1 	extrw,s ret0,30,31,ret0
  f0:	0a 9c 04 1c 	sub ret0,r20,ret0
  f4:	0b 9c 0a 9c 	shladd,l ret0,2,ret0,ret0
  f8:	88 7c 20 20 	cmpb,<> ret0,r3,110 <main+0x110>
  fc:	22 60 00 00 	ldil L%0,r19
			fc: R_PARISC_DIR21L	.LC6
 100:	e8 40 00 00 	b,l 108 <main+0x108>,rp
			100: R_PARISC_PCREL17F	puts
 104:	08 0b 02 5a 	copy r11,r26
 108:	e8 00 00 b0 	b,l 168 <main+0x168>,r0
 10c:	34 63 00 02 	ldo 1(r3),r3
 110:	36 73 00 00 	ldo 0(r19),r19
			110: R_PARISC_DIR14R	.LC6
 114:	2e 60 10 16 	fldd 0(r19),fr22
 118:	0f c3 12 81 	stw r3,-10(sp)
 11c:	27 c1 10 17 	fldw -10(sp),fr23
 120:	3a f6 57 16 	xmpyu fr23,fr22R,fr22
 124:	2f c1 12 16 	fstd fr22,-10(sp)
 128:	0f c1 10 9c 	ldw -10(sp),ret0
 12c:	0f c9 10 9d 	ldw -c(sp),ret1
 130:	d0 74 1c 1f 	extrw,s r3,0,1,r20
 134:	08 d4 02 13 	and r20,r6,r19
 138:	0a 7c 04 1c 	sub ret0,r19,ret0
 13c:	0a 9c 04 1c 	sub ret0,r20,ret0
 140:	0b 9c 0a 5c 	shladd,l ret0,1,ret0,ret0
 144:	88 7c 20 20 	cmpb,<> ret0,r3,15c <main+0x15c>
 148:	08 0a 02 5a 	copy r10,r26
 14c:	e8 40 00 00 	b,l 154 <main+0x154>,rp
			14c: R_PARISC_PCREL17F	puts
 150:	08 09 02 5a 	copy r9,r26
 154:	e8 00 00 18 	b,l 168 <main+0x168>,r0
 158:	34 63 00 02 	ldo 1(r3),r3
 15c:	e8 40 00 00 	b,l 164 <main+0x164>,rp
			15c: R_PARISC_PCREL17F	printf
 160:	08 03 02 59 	copy r3,r25
 164:	34 63 00 02 	ldo 1(r3),r3
 168:	88 65 3d fd 	cmpb,<> r5,r3,6c <main+0x6c>
 16c:	22 60 00 00 	ldil L%0,r19
			16c: R_PARISC_DIR21L	.LC4
 170:	4b c2 3e d9 	ldw -94(sp),rp
 174:	4b ca 3f 09 	ldw -7c(sp),r10
 178:	4b c9 3f 11 	ldw -78(sp),r9
 17c:	4b c8 3f 19 	ldw -74(sp),r8
 180:	4b c7 3f 21 	ldw -70(sp),r7
 184:	4b c6 3f 29 	ldw -6c(sp),r6
 188:	4b c5 3f 31 	ldw -68(sp),r5
 18c:	4b c4 3f 39 	ldw -64(sp),r4
 190:	4b c3 3f 41 	ldw -60(sp),r3
 194:	e8 40 c0 00 	bv r0(rp)
 198:	4f cb 3f 01 	ldw,mb -80(sp),r11

Normal


fizzbuzz.o:     file format elf32-hppa-linux


Disassembly of section .text:

00000000 <main>:
   0:	6b c2 3f d9 	stw rp,-14(sp)
   4:	08 03 02 41 	copy r3,r1
   8:	08 1e 02 43 	copy sp,r3
   c:	6f c1 01 00 	stw,ma r1,80(sp)
  10:	34 1c 00 02 	ldi 1,ret0
  14:	0c 7c 12 90 	stw ret0,8(r3)
  18:	e8 00 03 ca 	b,l,n 204 <main+0x204>,r0
  1c:	0c 70 10 94 	ldw 8(r3),r20
  20:	23 84 81 11 	ldil L%-77778000,ret0
  24:	37 9c 11 12 	ldo 889(ret0),ret0
  28:	0f dc 12 81 	stw ret0,-10(sp)
  2c:	27 c1 10 16 	fldw -10(sp),fr22
  30:	0f d4 12 81 	stw r20,-10(sp)
  34:	27 c1 10 57 	fldw -10(sp),fr23R
  38:	3a f6 47 97 	xmpyu fr23R,fr22,fr23
  3c:	2f c1 12 17 	fstd fr23,-10(sp)
  40:	0f c1 10 9c 	ldw -10(sp),ret0
  44:	0f c9 10 9d 	ldw -c(sp),ret1
  48:	d2 95 1c 1f 	extrw,s r20,0,1,r21
  4c:	22 64 81 11 	ldil L%-77778000,r19
  50:	36 73 11 12 	ldo 889(r19),r19
  54:	0a 75 02 13 	and r21,r19,r19
  58:	0a 7c 04 1c 	sub ret0,r19,ret0
  5c:	22 64 81 11 	ldil L%-77778000,r19
  60:	36 73 11 12 	ldo 889(r19),r19
  64:	d2 73 1c 1f 	extrw,s r19,0,1,r19
  68:	0a 93 02 13 	and r19,r20,r19
  6c:	0a 7c 04 1c 	sub ret0,r19,ret0
  70:	0a 9c 0a 1c 	add,l ret0,r20,ret0
  74:	d3 93 1f 83 	extrw,s ret0,28,29,r19
  78:	d2 9c 1c 1f 	extrw,s r20,0,1,ret0
  7c:	0b 93 04 1c 	sub r19,ret0,ret0
  80:	68 7c 00 28 	stw ret0,14(r3)
  84:	48 7c 00 28 	ldw 14(r3),ret0
  88:	d7 9c 08 84 	depw,z ret0,27,28,ret0
  8c:	48 73 00 28 	ldw 14(r3),r19
  90:	0a 7c 04 1c 	sub ret0,r19,ret0
  94:	0b 94 04 1c 	sub r20,ret0,ret0
  98:	68 7c 00 28 	stw ret0,14(r3)
  9c:	48 7c 00 28 	ldw 14(r3),ret0
  a0:	8f 80 20 22 	cmpib,<>,n 0,ret0,b8 <main+0xb8>
  a4:	23 80 00 00 	ldil L%0,ret0
			a4: R_PARISC_DIR21L	.LC0
  a8:	37 9a 00 00 	ldo 0(ret0),r26
			a8: R_PARISC_DIR14R	.LC0
  ac:	e8 40 00 00 	b,l b4 <main+0xb4>,rp
			ac: R_PARISC_PCREL17F	puts
  b0:	08 00 02 40 	nop
  b4:	e8 00 02 7a 	b,l,n 1f8 <main+0x1f8>,r0
  b8:	0c 70 10 94 	ldw 8(r3),r20
  bc:	23 94 4c cc 	ldil L%66668000,ret0
  c0:	37 9c 0c cf 	ldo -1999(ret0),ret0
  c4:	0f dc 12 81 	stw ret0,-10(sp)
  c8:	27 c1 10 16 	fldw -10(sp),fr22
  cc:	0f d4 12 81 	stw r20,-10(sp)
  d0:	27 c1 10 57 	fldw -10(sp),fr23R
  d4:	3a f6 47 97 	xmpyu fr23R,fr22,fr23
  d8:	2f c1 12 17 	fstd fr23,-10(sp)
  dc:	0f c1 10 9c 	ldw -10(sp),ret0
  e0:	0f c9 10 9d 	ldw -c(sp),ret1
  e4:	d2 95 1c 1f 	extrw,s r20,0,1,r21
  e8:	22 74 4c cc 	ldil L%66668000,r19
  ec:	36 73 0c cf 	ldo -1999(r19),r19
  f0:	0a 75 02 13 	and r21,r19,r19
  f4:	0a 7c 04 1c 	sub ret0,r19,ret0
  f8:	22 74 4c cc 	ldil L%66668000,r19
  fc:	36 73 0c cf 	ldo -1999(r19),r19
 100:	d2 73 1c 1f 	extrw,s r19,0,1,r19
 104:	0a 93 02 13 	and r19,r20,r19
 108:	0a 7c 04 1c 	sub ret0,r19,ret0
 10c:	d3 93 1f c1 	extrw,s ret0,30,31,r19
 110:	d2 9c 1c 1f 	extrw,s r20,0,1,ret0
 114:	0b 93 04 1c 	sub r19,ret0,ret0
 118:	68 7c 00 20 	stw ret0,10(r3)
 11c:	48 7c 00 20 	ldw 10(r3),ret0
 120:	d7 9c 08 42 	depw,z ret0,29,30,ret0
 124:	48 73 00 20 	ldw 10(r3),r19
 128:	0a 7c 0a 1c 	add,l ret0,r19,ret0
 12c:	0b 94 04 1c 	sub r20,ret0,ret0
 130:	68 7c 00 20 	stw ret0,10(r3)
 134:	48 7c 00 20 	ldw 10(r3),ret0
 138:	8f 80 20 22 	cmpib,<>,n 0,ret0,150 <main+0x150>
 13c:	23 80 00 00 	ldil L%0,ret0
			13c: R_PARISC_DIR21L	.LC1
 140:	37 9a 00 00 	ldo 0(ret0),r26
			140: R_PARISC_DIR14R	.LC1
 144:	e8 40 00 00 	b,l 14c <main+0x14c>,rp
			144: R_PARISC_PCREL17F	puts
 148:	08 00 02 40 	nop
 14c:	e8 00 01 4a 	b,l,n 1f8 <main+0x1f8>,r0
 150:	0c 70 10 94 	ldw 8(r3),r20
 154:	23 8a 4a aa 	ldil L%55554000,ret0
 158:	37 9c 2a ac 	ldo 1556(ret0),ret0
 15c:	0f dc 12 81 	stw ret0,-10(sp)
 160:	27 c1 10 16 	fldw -10(sp),fr22
 164:	0f d4 12 81 	stw r20,-10(sp)
 168:	27 c1 10 57 	fldw -10(sp),fr23R
 16c:	3a f6 47 97 	xmpyu fr23R,fr22,fr23
 170:	2f c1 12 17 	fstd fr23,-10(sp)
 174:	0f c1 10 9c 	ldw -10(sp),ret0
 178:	0f c9 10 9d 	ldw -c(sp),ret1
 17c:	d2 95 1c 1f 	extrw,s r20,0,1,r21
 180:	22 6a 4a aa 	ldil L%55554000,r19
 184:	36 73 2a ac 	ldo 1556(r19),r19
 188:	0a 75 02 13 	and r21,r19,r19
 18c:	0a 7c 04 1c 	sub ret0,r19,ret0
 190:	22 6a 4a aa 	ldil L%55554000,r19
 194:	36 73 2a ac 	ldo 1556(r19),r19
 198:	d2 73 1c 1f 	extrw,s r19,0,1,r19
 19c:	0a 93 02 13 	and r19,r20,r19
 1a0:	0a 7c 04 13 	sub ret0,r19,r19
 1a4:	d2 9c 1c 1f 	extrw,s r20,0,1,ret0
 1a8:	0b 93 04 1c 	sub r19,ret0,ret0
 1ac:	0c 7c 12 98 	stw ret0,c(r3)
 1b0:	0c 78 10 9c 	ldw c(r3),ret0
 1b4:	d7 9c 08 21 	depw,z ret0,30,31,ret0
 1b8:	0c 78 10 93 	ldw c(r3),r19
 1bc:	0a 7c 0a 1c 	add,l ret0,r19,ret0
 1c0:	0b 94 04 1c 	sub r20,ret0,ret0
 1c4:	0c 7c 12 98 	stw ret0,c(r3)
 1c8:	0c 78 10 9c 	ldw c(r3),ret0
 1cc:	8f 80 20 22 	cmpib,<>,n 0,ret0,1e4 <main+0x1e4>
 1d0:	23 80 00 00 	ldil L%0,ret0
			1d0: R_PARISC_DIR21L	.LC2
 1d4:	37 9a 00 00 	ldo 0(ret0),r26
			1d4: R_PARISC_DIR14R	.LC2
 1d8:	e8 40 00 00 	b,l 1e0 <main+0x1e0>,rp
			1d8: R_PARISC_PCREL17F	puts
 1dc:	08 00 02 40 	nop
 1e0:	e8 00 00 22 	b,l,n 1f8 <main+0x1f8>,r0
 1e4:	23 80 00 00 	ldil L%0,ret0
			1e4: R_PARISC_DIR21L	.LC3
 1e8:	37 9a 00 00 	ldo 0(ret0),r26
			1e8: R_PARISC_DIR14R	.LC3
 1ec:	0c 70 10 99 	ldw 8(r3),r25
 1f0:	e8 40 00 00 	b,l 1f8 <main+0x1f8>,rp
			1f0: R_PARISC_PCREL17F	printf
 1f4:	08 00 02 40 	nop
 1f8:	0c 70 10 9c 	ldw 8(r3),ret0
 1fc:	37 9c 00 02 	ldo 1(ret0),ret0
 200:	0c 7c 12 90 	stw ret0,8(r3)
 204:	0c 70 10 93 	ldw 8(r3),r19
 208:	34 1c 00 c8 	ldi 64,ret0
 20c:	8a 7c 5c 15 	cmpb,>= ret0,r19,1c <main+0x1c>
 210:	08 00 02 40 	nop
 214:	48 62 3f d9 	ldw -14(r3),rp
 218:	34 7e 00 80 	ldo 40(r3),sp
 21c:	4f c3 3f 81 	ldw,mb -40(sp),r3
 220:	e8 40 c0 02 	bv,n r0(rp)
Last modified:2009/09/08 18:37:39
Keyword(s):
References:[FizzBuzzAsm]