Bladeren bron

Added new version of hello.s

Jayke Meijer 14 jaren geleden
bovenliggende
commit
c72234a98a
1 gewijzigde bestanden met toevoegingen van 16 en 7 verwijderingen
  1. 16 7
      benchmarks/build/hello.s

+ 16 - 7
benchmarks/build/hello.s

@@ -10,6 +10,11 @@
 
 
 gcc2_compiled.:
 gcc2_compiled.:
 __gnu_compiled_c:
 __gnu_compiled_c:
+	.sdata
+	.align	3
+$LC0:
+	.word	0x00000000		# 2
+	.word	0x40000000
 	.text
 	.text
 	.align	2
 	.align	2
 	.globl	main
 	.globl	main
@@ -19,20 +24,24 @@ __gnu_compiled_c:
 	.loc	1 2
 	.loc	1 2
 	.ent	main
 	.ent	main
 main:
 main:
-	.frame	$fp,24,$31		# vars= 0, regs= 2/0, args= 16, extra= 0
+	.frame	$fp,40,$31		# vars= 16, regs= 2/0, args= 16, extra= 0
 	.mask	0xc0000000,-4
 	.mask	0xc0000000,-4
 	.fmask	0x00000000,0
 	.fmask	0x00000000,0
-	subu	$sp,$sp,24
-	sw	$31,20($sp)
-	sw	$fp,16($sp)
+	subu	$sp,$sp,40
+	sw	$31,36($sp)
+	sw	$fp,32($sp)
 	move	$fp,$sp
 	move	$fp,$sp
 	jal	__main
 	jal	__main
+	li	$2,0x00000001		# 1
+	sw	$2,16($fp)
+	l.d	$f0,$LC0
+	s.d	$f0,24($fp)
 	move	$2,$0
 	move	$2,$0
 	j	$L1
 	j	$L1
 $L1:
 $L1:
 	move	$sp,$fp			# sp not trusted here
 	move	$sp,$fp			# sp not trusted here
-	lw	$31,20($sp)
-	lw	$fp,16($sp)
-	addu	$sp,$sp,24
+	lw	$31,36($sp)
+	lw	$fp,32($sp)
+	addu	$sp,$sp,40
 	j	$31
 	j	$31
 	.end	main
 	.end	main