]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge r9605 (make tronical work on Darwin) from the DARWIN branch.
authorNicholas Nethercote <njn@valgrind.org>
Fri, 24 Apr 2009 07:24:05 +0000 (07:24 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 24 Apr 2009 07:24:05 +0000 (07:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9606

memcheck/tests/x86/Makefile.am
memcheck/tests/x86/tronical.S

index 49c9d3fb1a803486d1550afb3a23c4edfe0d3705..fca09994d5b2eccede591d5ad398512f90b22df4 100644 (file)
@@ -30,15 +30,15 @@ check_PROGRAMS = \
        espindola2 \
        int3-x86 \
        fpeflags \
-        fprem \
-        fxsave \
+       fprem \
+       fxsave \
        more_x86_fp \
-        pushfpopf \
+       pushfpopf \
        pushfw_x86 \
        pushpopmem \
-        sse_memory \
-        tronical \
-        xor-undef-x86
+       sse_memory \
+       tronical \
+       xor-undef-x86
 
 AM_CFLAGS   += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
 AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
index c7ff61b326e98d7a9322feac5125453569ae4405..9af3a184ad7de09dc850843ef5589cb703bd58c0 100644 (file)
@@ -49,13 +49,14 @@ int main()
 
 */
 
+#include "tests/asm.h"
+
        .file   "tronical.c"
        .version        "01.01"
 gcc2_compiled.:
 .text
        .align 4
 .globl set
-       .type    set,@function
 set:
        pushl   %ebp
        movl    foo, %eax
@@ -64,14 +65,11 @@ set:
        popl    %ebp
        ret
 .Lfe1:
-       .size    set,.Lfe1-set
-       .section        .rodata
 .LC0:
-       .string "blieb\n"
+       .ascii  "blieb\n"
 .text
        .align 4
 .globl get
-       .type    get,@function
 get:
        pushl   %ebp
        movl    %esp, %ebp
@@ -81,22 +79,20 @@ get:
        js      .L4
        subl    $12, %esp
        pushl   $.LC0
-       call    printf
+       call    VG_SYM_ASM(printf)
        addl    $16, %esp
 .L4:
        leave
        ret
 .Lfe2:
-       .size    get,.Lfe2-get
        .align 4
-.globl main
-       .type    main,@function
-main:
+.globl VG_SYM_ASM(main)
+VG_SYM_ASM(main):
        pushl   %ebp
        movl    %esp, %ebp
        subl    $20, %esp
        pushl   $4
-       call    malloc
+       call    VG_SYM_ASM(malloc)
        movl    %eax, foo
        call    set
        call    get
@@ -104,6 +100,5 @@ main:
        leave
        ret
 .Lfe3:
-       .size    main,.Lfe3-main
        .comm   foo,4,4
        .ident  "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"