Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/csu/arch Simplify



details:   https://anonhg.NetBSD.org/src/rev/5351c057ae6c
branches:  trunk
changeset: 759548:5351c057ae6c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Dec 12 18:21:21 2010 +0000

description:
Simplify

diffstat:

 tests/lib/csu/arch/i386/h_initfini_align.S   |  11 ++++-------
 tests/lib/csu/arch/x86_64/h_initfini_align.S |  11 ++++-------
 2 files changed, 8 insertions(+), 14 deletions(-)

diffs (47 lines):

diff -r 081e34d10081 -r 5351c057ae6c tests/lib/csu/arch/i386/h_initfini_align.S
--- a/tests/lib/csu/arch/i386/h_initfini_align.S        Sun Dec 12 17:58:28 2010 +0000
+++ b/tests/lib/csu/arch/i386/h_initfini_align.S        Sun Dec 12 18:21:21 2010 +0000
@@ -1,15 +1,12 @@
-/*     $NetBSD: h_initfini_align.S,v 1.1 2010/12/03 20:51:21 joerg Exp $       */
+/*     $NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $       */
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: h_initfini_align.S,v 1.1 2010/12/03 20:51:21 joerg Exp $")
+RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $")
 
 _ENTRY(check_stack_alignment)
        movl    %esp, %eax
        andl    $3, %eax
-       jz 1f
-       xorl    %eax, %eax
+       setz    %al
+       movzbl  %al, %eax
        ret
-1:
-       incl    %eax
-       ret
diff -r 081e34d10081 -r 5351c057ae6c tests/lib/csu/arch/x86_64/h_initfini_align.S
--- a/tests/lib/csu/arch/x86_64/h_initfini_align.S      Sun Dec 12 17:58:28 2010 +0000
+++ b/tests/lib/csu/arch/x86_64/h_initfini_align.S      Sun Dec 12 18:21:21 2010 +0000
@@ -1,16 +1,13 @@
-/*     $NetBSD: h_initfini_align.S,v 1.1 2010/12/03 20:51:21 joerg Exp $       */
+/*     $NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $       */
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: h_initfini_align.S,v 1.1 2010/12/03 20:51:21 joerg Exp $")
+RCSID("$NetBSD: h_initfini_align.S,v 1.2 2010/12/12 18:21:21 joerg Exp $")
 
 _ENTRY(check_stack_alignment)
        movl    %esp, %eax
        andl    $15, %eax
        subl    $8, %eax
-       jz 1f
-       xorl    %eax, %eax
+       sete    %al
+       movzbl  %al, %eax
        ret
-1:
-       incl    %eax
-       ret



Home | Main Index | Thread Index | Old Index