Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/arch implement return_one for hppa, mips, ppc...



details:   https://anonhg.NetBSD.org/src/rev/4bccdaa296f8
branches:  trunk
changeset: 839331:4bccdaa296f8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Feb 14 10:36:33 2019 +0000

description:
implement return_one for hppa, mips, ppc64, and vax.

diffstat:

 tests/lib/libc/arch/hppa/return_one.S      |   8 +++++---
 tests/lib/libc/arch/mips/return_one.S      |   9 ++++++---
 tests/lib/libc/arch/powerpc64/return_one.S |   8 +++++---
 tests/lib/libc/arch/vax/return_one.S       |  10 +++++++---
 4 files changed, 23 insertions(+), 12 deletions(-)

diffs (71 lines):

diff -r 8a389b7687da -r 4bccdaa296f8 tests/lib/libc/arch/hppa/return_one.S
--- a/tests/lib/libc/arch/hppa/return_one.S     Thu Feb 14 10:29:58 2019 +0000
+++ b/tests/lib/libc/arch/hppa/return_one.S     Thu Feb 14 10:36:33 2019 +0000
@@ -1,8 +1,10 @@
-/*     $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:09 jym Exp $ */
+/*     $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */
 
 #include <machine/asm.h>
 
 .globl return_one, return_one_end;
 
-return_one: return_one_end:
-       nop
+return_one:
+       bv %r0(%r2)
+       ldi 1,%r28
+return_one_end:
diff -r 8a389b7687da -r 4bccdaa296f8 tests/lib/libc/arch/mips/return_one.S
--- a/tests/lib/libc/arch/mips/return_one.S     Thu Feb 14 10:29:58 2019 +0000
+++ b/tests/lib/libc/arch/mips/return_one.S     Thu Feb 14 10:36:33 2019 +0000
@@ -1,8 +1,11 @@
-/*     $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:10 jym Exp $ */
+/*     $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */
 
 #include <machine/asm.h>
 
 .globl return_one, return_one_end;
 
-return_one: return_one_end:
-       nop
+return_one:
+       jr      $31
+       li      $2,1
+
+return_one_end:
diff -r 8a389b7687da -r 4bccdaa296f8 tests/lib/libc/arch/powerpc64/return_one.S
--- a/tests/lib/libc/arch/powerpc64/return_one.S        Thu Feb 14 10:29:58 2019 +0000
+++ b/tests/lib/libc/arch/powerpc64/return_one.S        Thu Feb 14 10:36:33 2019 +0000
@@ -1,8 +1,10 @@
-/*     $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:10 jym Exp $ */
+/*     $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */
 
 #include <machine/asm.h>
 
 .globl return_one, return_one_end;
 
-return_one: return_one_end:
-       nop
+return_one:
+       li 3,1
+       blr
+return_one_end:
diff -r 8a389b7687da -r 4bccdaa296f8 tests/lib/libc/arch/vax/return_one.S
--- a/tests/lib/libc/arch/vax/return_one.S      Thu Feb 14 10:29:58 2019 +0000
+++ b/tests/lib/libc/arch/vax/return_one.S      Thu Feb 14 10:36:33 2019 +0000
@@ -1,8 +1,12 @@
-/*     $NetBSD: return_one.S,v 1.1 2011/07/18 23:16:10 jym Exp $ */
+/*     $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */
 
 #include <machine/asm.h>
 
 .globl return_one, return_one_end;
 
-return_one: return_one_end:
-       nop
+return_one:
+       .word 0
+       subl2 $4,%sp
+       movl $1,%r0
+       ret
+return_one_end:



Home | Main Index | Thread Index | Old Index