public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/62139] New: Tilera tilepro: useless stack pointer operations
@ 2014-08-14 16:29 jose.parera at upm dot es
2022-11-09 15:56 ` [Bug target/62139] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: jose.parera at upm dot es @ 2014-08-14 16:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62139
Bug ID: 62139
Summary: Tilera tilepro: useless stack pointer operations
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jose.parera at upm dot es
I made a C function to split a register into halves and return them as a
struct. The code works fine but adds a couple of useless instructions
concerning the stack that cause a performance penalty.
typedef struct {
uint32_t y0;
uint32_t y1;
} __tpro_split_t;
__tpro_split_t split(uint32_t a) {
__tpro_split_t res = {
.y0 = __insn_srai(__insn_shli(a, 16), 16),
.y1 = __insn_srai(a, 16)
};
return res;
}
The assembler code is
.cfi_startproc
{
shli r10, r0, 16
srai r1, r0, 16
}
{
addi sp, sp, -8 <== useless
.cfi_def_cfa_offset 8
srai r0, r10, 16
}
{
addi sp, sp, 8 <== useless
.cfi_def_cfa_offset 0
jrp lr
}
.cfi_endproc
I think that this issue is quite similar to those at bug #48941 but in this
case for Tilera TilePro architecture, and probably, also TileGx.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/62139] Tilera tilepro: useless stack pointer operations
2014-08-14 16:29 [Bug c/62139] New: Tilera tilepro: useless stack pointer operations jose.parera at upm dot es
@ 2022-11-09 15:56 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-09 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62139
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The tile* targets were removed in r13-1267-gfc259b522c0f8b so closing as won't
fix.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-09 15:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14 16:29 [Bug c/62139] New: Tilera tilepro: useless stack pointer operations jose.parera at upm dot es
2022-11-09 15:56 ` [Bug target/62139] " 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).