public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bill Currie <bcurrie@tssc.co.nz>
To: Philipp Thomas <kthomas@gwdg.de>
Cc: egcs@egcs.cygnus.com
Subject: Re: Help with assembly
Date: Fri, 30 Apr 1999 23:15:00 -0000	[thread overview]
Message-ID: <371FA817.D4F05745@tssc.co.nz> (raw)
Message-ID: <19990430231500.alqvNw2BKl3-1iLFBiAStu_Jkp26rWMH6o_xNaHdnK8@z> (raw)
In-Reply-To: <3720a164.2460070@mailer.gwdg.de>

Philipp Thomas wrote:
> 
> Yes, I know this possibly isn't the right place to ask. But could somebody
> with more knowledge of x86 assembly tell me what's wrong with this asm
> (besides the message that egcs spits out) and how to possibly fix it ?
> 
> time.c: In function `calibrate_tsc':
> time.c:611: Invalid `asm' statement:
> time.c:611: fixed or forbidden register 1 (dx) was spilled for class DREG.
> 
>         __asm__("mull %1\n\t"
>                 "divl %4"
>                 : "=a" (calibrate_time)
>                 : "r" (calibrate_latch), "0" (1000000), "d" (0),
							  ^^^^^
Drop the "d" register, you don't need it (mull only *sets* edx, it
doesn't read it, only div does) and the conflict between it and your
clobber below is what's causing your problem.


>                   "r" (CLOCK_TICK_RATE)
>                 : "edx");
> 
> Philipp Thomas
> 
> --
> caffeine low .... brain halted

-- 
Leave others their otherness

  reply	other threads:[~1999-04-30 23:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-22 15:28 Philipp Thomas
1999-04-22 15:48 ` Bill Currie [this message]
1999-04-30 23:15   ` Bill Currie
1999-04-22 22:21 ` Jeffrey A Law
1999-04-30 23:15   ` Jeffrey A Law
1999-04-30 23:15 ` Philipp Thomas

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=371FA817.D4F05745@tssc.co.nz \
    --to=bcurrie@tssc.co.nz \
    --cc=egcs@egcs.cygnus.com \
    --cc=kthomas@gwdg.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).