public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108239] New: -mprefixed causes too large displacements for extended inline asm memory operands
@ 2022-12-28 0:52 npiggin at gmail dot com
2023-04-27 16:00 ` [Bug target/108239] " bergner at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: npiggin at gmail dot com @ 2022-12-28 0:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108239
Bug ID: 108239
Summary: -mprefixed causes too large displacements for extended
inline asm memory operands
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: npiggin at gmail dot com
CC: segher at gcc dot gnu.org
Target Milestone: ---
Target: powerpc64le-linux-gnu
--- test.c ---
// powerpc64le-linux-gnu-gcc -O2 -mcpu=power10 -mno-pcrel -c test.c
#include <stdint.h>
static inline uint32_t readl(uint32_t *addr)
{
uint32_t ret;
__asm__ __volatile__("lwz %0,%1" : "=r" (ret) : "m" (*addr));
return ret;
}
int test(void *addr)
{
return readl(addr + 0x8024);
}
---
This generates invalid assembly 'lwz 3,32804(3)' with displacement exceeding
allowable size. Using -mno-prefixed fixes the problem.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/108239] -mprefixed causes too large displacements for extended inline asm memory operands
2022-12-28 0:52 [Bug target/108239] New: -mprefixed causes too large displacements for extended inline asm memory operands npiggin at gmail dot com
@ 2023-04-27 16:00 ` bergner at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: bergner at gcc dot gnu.org @ 2023-04-27 16:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108239
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
This is a dup or PR105325.
*** This bug has been marked as a duplicate of bug 105325 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-27 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28 0:52 [Bug target/108239] New: -mprefixed causes too large displacements for extended inline asm memory operands npiggin at gmail dot com
2023-04-27 16:00 ` [Bug target/108239] " bergner at gcc dot gnu.org
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).