All of lore.kernel.org
 help / color / mirror / Atom feed
From: Szekeres Istvan <szekeres@webvilag.com>
To: linux-kernel@vger.kernel.org
Subject: Assembly question
Date: Thu, 25 Apr 2002 10:32:25 +0200	[thread overview]
Message-ID: <20020425083225.GA30247@webvilag.com> (raw)

Hi,

Long time ago (older gcc) this code snippet used to compile. Now it doesn't.
Do you asm gurus have any idea what is wrong?

void p_memset_dword( void *d, int b, int l )
{
    __asm__ ("rep\n\t"
             "stosl\n\t"
             :
             : "D" (d), "a" (b), "c" (l)
             : "memory","edi", "eax", "ecx"
            );
}

The compiler says:
a.c: In function `p_memset_dword':
a.c:9: Invalid `asm' statement:
a.c:9: fixed or forbidden register 0 (ax) was spilled for class AREG.

Thanks,
Pista


             reply	other threads:[~2002-04-25  8:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-25  8:32 Szekeres Istvan [this message]
2002-04-25 23:52 ` Assembly question Mark Zealey
2002-04-26 11:37   ` Gabriel Paubert
2002-04-26 12:34     ` Richard B. Johnson
2002-04-28 18:07       ` Zack Weinberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020425083225.GA30247@webvilag.com \
    --to=szekeres@webvilag.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.