public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/67700] New: [graphite] miscompile due to wrong codegen
@ 2015-09-23 22:34 hiraditya at msn dot com
2015-09-23 22:37 ` [Bug tree-optimization/67700] " hiraditya at msn dot com
2015-09-28 19:21 ` spop at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: hiraditya at msn dot com @ 2015-09-23 22:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67700
Bug ID: 67700
Summary: [graphite] miscompile due to wrong codegen
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: hiraditya at msn dot com
Target Milestone: ---
A reduced test case is below:
compile with trunk gcc:
gcc -O2 -fgraphite-identity test.c
./a.out
int main(): Assertion `abcd->a[8] == 29' failed
struct abc {
int a[81];
} *abcd;
#define FPMATH_SSE 2
int global;
void __attribute__ ((noinline)) foo()
{
int pos = 0;
int i;
if (!((global & FPMATH_SSE) != 0))
for (i = 8; i <= 15; i++)
abcd->a[pos++] = i;
for (i = 29; i <= 36; i++)
abcd->a[pos++] = i;
}
#include <stdlib>
#include <stdio>
#include <assert>
int main()
{
int i;
abcd = (struct abc*) malloc (sizeof (abc));
for (i = 0; i <= 80; i++)
abcd->a[i] = 0;
foo();
assert (abcd->a[8] == 29);
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/67700] [graphite] miscompile due to wrong codegen
2015-09-23 22:34 [Bug tree-optimization/67700] New: [graphite] miscompile due to wrong codegen hiraditya at msn dot com
@ 2015-09-23 22:37 ` hiraditya at msn dot com
2015-09-28 19:21 ` spop at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: hiraditya at msn dot com @ 2015-09-23 22:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67700
--- Comment #1 from AK <hiraditya at msn dot com> ---
The problem seems to be in
static void canonicalize_loop_closed_ssa (loop_p loop)
which generates phi node at a wrong place in this case.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/67700] [graphite] miscompile due to wrong codegen
2015-09-23 22:34 [Bug tree-optimization/67700] New: [graphite] miscompile due to wrong codegen hiraditya at msn dot com
2015-09-23 22:37 ` [Bug tree-optimization/67700] " hiraditya at msn dot com
@ 2015-09-28 19:21 ` spop at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: spop at gcc dot gnu.org @ 2015-09-28 19:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67700
Sebastian Pop <spop at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Sebastian Pop <spop at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-28 19:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 22:34 [Bug tree-optimization/67700] New: [graphite] miscompile due to wrong codegen hiraditya at msn dot com
2015-09-23 22:37 ` [Bug tree-optimization/67700] " hiraditya at msn dot com
2015-09-28 19:21 ` spop 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).