Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: maister at archlinux dot us
Target Milestone: ---
On GCC 9.1.0, this snippet is miscompiled:
#include
#include
#include
static const char *vector_swizzle(int vecsize, int index)
{
static const char
Assignee: unassigned at gcc dot gnu.org
Reporter: maister at archlinux dot us
Created attachment 32174
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32174&action=edit
Reduced testcase
GCC 4.8.2 with -O3 breaks a certain loop I'm compiling. Disabling the
vec
--- Comment #6 from maister at archlinux dot us 2010-05-12 15:23 ---
That worked (-O3 -fno-strict-aliasing). But why does this work on -O2 and not
-O3?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44098
--- Comment #3 from maister at archlinux dot us 2010-05-12 15:01 ---
Created an attachment (id=20647)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20647&action=view)
ASM output with -O3
Assembly output with -O3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44098
--- Comment #2 from maister at archlinux dot us 2010-05-12 15:00 ---
Created an attachment (id=20646)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20646&action=view)
ASM output with -O2
Assembly output using gcc -S -O2 invsqrt.c
--
http://gcc.gnu.org/bugzilla/show_
--- Comment #1 from maister at archlinux dot us 2010-05-12 14:56 ---
Created an attachment (id=20645)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20645&action=view)
The test case.
Actually, it's quite absurd, but trying to print out from 1 to 10 rather than 1
to 1
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: maister at archlinux dot us
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzill
--- Comment #4 from maister at archlinux dot us 2009-11-22 12:15 ---
Created an attachment (id=19083)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19083&action=view)
Output from gcc-4.4 with lots of optimizations
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42142
--- Comment #3 from maister at archlinux dot us 2009-11-22 12:15 ---
Created an attachment (id=19082)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19082&action=view)
Output with gcc-4.5, no optimization
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42142
--- Comment #2 from maister at archlinux dot us 2009-11-22 12:15 ---
Created an attachment (id=19081)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19081&action=view)
Output with gcc-4.5 and -O
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42142
--- Comment #1 from maister at archlinux dot us 2009-11-22 12:14 ---
Created an attachment (id=19080)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19080&action=view)
The sorting test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42142
optimizing with -O1 or
higher
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: maister at archlinux do
12 matches
Mail list logo