[Top] [All Lists]

Re: some question about Extended Asm

To: loody <>
Subject: Re: some question about Extended Asm
From: "Maciej W. Rozycki" <>
Date: Wed, 6 Jan 2010 12:48:45 +0000 (GMT)
Cc: Linux MIPS Mailing List <>
In-reply-to: <>
References: <>
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
On Wed, 6 Jan 2010, loody wrote:

> I try to
>   "or %0, count\n", where count is $a1.
> so I write %1 as count and write
>   "or %0, %1\n" and assign %1 as count in input section.
> But the result is not what I expect.
> the result is "   or      v1,v1,v0"
> Did I miss something or the only way to meet what I need is directly write
>  "or %0, $a1\n"?

 As you can figure out from the semantics:

        or      v1, v0

is a shorthand for:

        or      v1, v1, v0

There is no two-argument register OR instruction in the standard MIPS 
instruction set (nor there is a need for one).


<Prev in Thread] Current Thread [Next in Thread>