Re: [commit: testsuite] master: The asm tests pass on Linux, but not OS X (89e571e)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
On Mon, Oct 15, 2012 at 08:22:19AM -0700, Simon Marlow wrote:
> >
> >     The asm tests pass on Linux, but not OS X
> 
> Interesting... what goes wrong?  I hoped they would work on OS X too.

Cosmetic differences, e.g. whether labels start with a . and whether
there is a leading underscore. Perhaps when LeadingUnderscore is on we
should filter out all labels not starting with an _ and then remove the
leading underscore from any that remain?

--- ./memcpy.asm        2012-10-09 19:15:03.000000000 +0100
+++ ./memcpy.s  2012-10-15 17:47:42.000000000 +0100
@@ -1,9 +1,15 @@
-callMemcpy:
-        movq  ; Move arguments into place
-        movq
-        movl
-        subq
-        movl
-        call memcpy
-        addq
-        jmp
+.text
+.align 3
+.globl _callMemcpy
+_callMemcpy:
+Lc3:
+       movq %rbx,%rdi
+       movq %r14,%rsi
+       movl $1024,%edx
+       subq $8,%rsp
+       movl $0,%eax
+       call _memcpy
+       addq $8,%rsp
+       jmp *(%rbp)
+.subsections_via_symbols
+.ident "GHC 7.7.20121014"
*** unexpected failure for memcpy(normal)


Thanks
Ian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.