This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78438] [7 Regression] incorrect comparison optimization
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Nov 2016 08:37:44 +0000
- Subject: [Bug target/78438] [7 Regression] incorrect comparison optimization
- Auto-submitted: auto-generated
- References: <bug-78438-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-11-21
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |7.0
Summary|incorrect comparison |[7 Regression] incorrect
|optimization |comparison optimization
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r242414.
Simplified testcase:
char a = 0;
int b = 197412621;
__attribute__ ((noinline, noclone))
void foo ()
{
a = 0 > (short) (b >> 11);
}
int
main ()
{
asm volatile ("" : : : "memory");
foo ();
if (a != 0)
__builtin_abort ();
return 0;
}