public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/84187] -O0 fails inline assembly compile
[not found] <bug-84187-4@http.gcc.gnu.org/bugzilla/>
@ 2021-05-24 18:04 ` pinskia at gcc dot gnu.org
2021-09-14 20:51 ` [Bug inline-asm/84187] " pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-24 18:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84187
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|1 |0
Status|WAITING |UNCONFIRMED
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug inline-asm/84187] -O0 fails inline assembly compile
[not found] <bug-84187-4@http.gcc.gnu.org/bugzilla/>
2021-05-24 18:04 ` [Bug c/84187] -O0 fails inline assembly compile pinskia at gcc dot gnu.org
@ 2021-09-14 20:51 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-14 20:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84187
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This inline-asm is invalid for -O0 where no optimizations is done.
Reduced testcase:
static inline __attribute__((always_inline))
void _static_cpu_has(unsigned short bit)
{
asm ("": : "i" (bit));
}
void
GccCompileError_init(void)
{
_static_cpu_has(( 9*32+10)) ;
}
bit is not a literal constant so at -O0 there is no expectation that bit would
match the "i" constraints.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-14 20:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-84187-4@http.gcc.gnu.org/bugzilla/>
2021-05-24 18:04 ` [Bug c/84187] -O0 fails inline assembly compile pinskia at gcc dot gnu.org
2021-09-14 20:51 ` [Bug inline-asm/84187] " pinskia 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).