From owner-freebsd-hackers Mon Jan 7 11:33:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from femail7.sdc1.sfba.home.com (femail7.sdc1.sfba.home.com [24.0.95.87]) by hub.freebsd.org (Postfix) with ESMTP id 4A9EE37B404; Mon, 7 Jan 2002 11:33:25 -0800 (PST) Received: from math.missouri.edu ([24.12.197.197]) by femail7.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020107193325.GDQE16463.femail7.sdc1.sfba.home.com@math.missouri.edu>; Mon, 7 Jan 2002 11:33:25 -0800 Message-ID: <3C39F804.43A242DD@math.missouri.edu> Date: Mon, 07 Jan 2002 13:33:24 -0600 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: freebsd-hackers@FreeBSD.org, "Matthew D. Fuller" Subject: Re: Tell gcc I have a i686 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin wrote: > > > You know, I have no idea. It is someone elses code. These are the > > instructions. Can anyone tell me? > > > > "movl 32(%0),%1\n" > > "adcl %1,32(%0)\n" > > > > Also, from this discussion, what I have decided to do is provide it as > > an option for the user to add by editing the Makefile - not to do it > > automatically. > > These instructions are 386 instructions. What we need to see are the > contraints (the stuff after the actual instructions with colons in them) to see > if it is somehow using Pentium Pro+ specific registers. And actually, just for > the record, a PPro is a 686. :) > OK, this is it in context: register Word32 *_x = x; register int _a = 0; asm("xorl %1,%1\n" /* clear C */ "movl 124(%0),%1\n" "adcl %1,124(%0)\n" : : "r" (_x), "r" (_a) ); -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message