Re: [commit: testsuite] master: The asm tests pass on Linux, but not OS X (89e571e)
Simon Marlow <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
On 15/10/12 09:55, Ian Lynagh wrote: > 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? Ah ok, nothing serious then. We could just have a darwin-specific output file for these tests, I can sort it out when I get around to it (but if it's easy for you please go ahead). Cheers, Simon > > --- ./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 > > > _______________________________________________ > Cvs-ghc mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/cvs-ghc >