Discussion:
[Bug gas/23154] invalid register expression
schwab@linux-m68k.org
2018-05-10 07:31:04 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

--- Comment #6 from Andreas Schwab <***@linux-m68k.org> ---
Search for PowerPC ISA.
--
You are receiving this mail because:
You are on the CC list for the bug.
pangbw at gmail dot com
2018-05-09 23:13:59 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

--- Comment #5 from Baoshan <pangbw at gmail dot com> ---
(In reply to Andreas Schwab from comment #4)
That's the point of the warning, an operand written as register but isn't
one.
Is there any place/document I can check that's saying %r0 can not be used in
this way?
--
You are receiving this mail because:
You are on the CC list for the bug.
schwab@linux-m68k.org
2018-05-09 23:02:53 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

Andreas Schwab <***@linux-m68k.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID

--- Comment #4 from Andreas Schwab <***@linux-m68k.org> ---
That's the point of the warning, an operand written as register but isn't one.
--
You are receiving this mail because:
You are on the CC list for the bug.
pangbw at gmail dot com
2018-05-09 22:52:35 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

Baoshan <pangbw at gmail dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---

--- Comment #3 from Baoshan <pangbw at gmail dot com> ---
(In reply to Andreas Schwab from comment #1)
For the second line, the second operand is not a register but the constant 0
(equivalent to lis %r5,2).
Do you mean even it is written as %r0 it is treated as constant 0?
if so in line 3, the second operand is written explicity as constant 0, why it
is OK?
--
You are receiving this mail because:
You are on the CC list for the bug.
pangbw at gmail dot com
2018-05-09 21:33:09 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

--- Comment #2 from Baoshan <pangbw at gmail dot com> ---
(In reply to Andreas Schwab from comment #1)
For the second line, the second operand is not a register but the constant 0
(equivalent to lis %r5,2).
Do you mean even it is written as %r0 it is treated as constant 0?
if so in line 3, the second operand is written explicity as constant 0, why it
is OK?
--
You are receiving this mail because:
You are on the CC list for the bug.
schwab@linux-m68k.org
2018-05-09 21:28:19 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

Andreas Schwab <***@linux-m68k.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID

--- Comment #1 from Andreas Schwab <***@linux-m68k.org> ---
For the second line, the second operand is not a register but the constant 0
(equivalent to lis %r5,2).
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...