[Bug tree-optimization/97967] New: Missed optimization opportunity for VRP

2020-11-24 Thread ishiura-compiler at ml dot kwansei.ac.jp via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We have another VRP related test case for GCC-10.2.0. We expect A1.c and A2.c should compile to the same codes, but they did not

[Bug tree-optimization/97964] New: Missed optimization opportunity for VRP

2020-11-23 Thread ishiura-compiler at ml dot kwansei.ac.jp via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled two programs (A1.c, A2.c) by gcc-10.2.0 with -O3 option. The two programs are equivalent, but resulted in different assembly codes. Although

[Bug tree-optimization/83580] New: Wrong constant folding

2017-12-24 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 8.0.0 for x86_64 miscompiles the following code. % cat test.c int a[2] = {0,1}; int x = 129; int main (void) { volatile int v = 0; int t = x; for (int i = 0; i

[Bug tree-optimization/83573] New: Wrong constant folding

2017-12-23 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 8.0 for x86_64 miscompiles the following code. % cat test.c int a[2] = {0,1}; int x = 129; int main (void) { volatile int v = 0; int t = x; for (int i = 0; i

[Bug tree-optimization/83544] New: Missed optimization opportunity for constant folding

2017-12-21 Thread ishiura-compiler at ml dot kwansei.ac.jp
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled two programs (A1.c, A2.c) by GCC-8.0.0 with -O3 option. We expect the resulting assembly codes would be the same, or at least A1.c

[Bug tree-optimization/83269] New: Wrong constant folding

2017-12-04 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 8.0.0 for x86_64 miscompiles the following code. Reproduces on gcc-5.1.0 to gcc-6.3.0 and gcc-8.0.0 with -O1, and on gcc-4.4.7 or later with -O2. % cat test.c int main

[Bug tree-optimization/82188] New: Missed optimization opportunity for constant folding

2017-09-12 Thread ishiura-compiler at ml dot kwansei.ac.jp
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled two programs (A1.c, A2.c) by GCC-8.0.0 with -O3 option. Though the two programs are equivalent, GCC outputs different assembly

[Bug tree-optimization/81165] New: Regression in GCC-8.0.0's optimizer

2017-06-21 Thread ishiura-compiler at ml dot kwansei.ac.jp
tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled the following program by GCC-8.0.0 and GCC-7.0.1 with -O3 option. GCC-7.0.1 performed better optimization than GCC-8.0.0. $ cat test.c void

[Bug tree-optimization/80541] New: Wrong constant folding

2017-04-26 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 7.0.1 for x86_64 miscompiles the following code. Reproduces on gcc-4.6.4 or later with -O2, -O3 and -Os. % cat test.c int main (void) { volatile int a = 0; int

[Bug tree-optimization/80426] New: Wrong constant folding

2017-04-14 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 7.0.1 for x86_64 miscompiles the following code. % cat test.c #define INT_MAX 0x7fff #define INT_MIN (-INT_MAX-1) int x; int main (void) { volatile int a = 0

[Bug tree-optimization/80281] New: Wrong constant folding

2017-04-01 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 7.0.1 for x86_64 miscompiles the following code. % cat test.c int main (void) { volatile int a = 0; long b = 2147483648L; int c = a % 2

[Bug tree-optimization/78305] New: Wrong constant folding

2016-11-10 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 7.0.0 for x86_64 miscompiles the following code. % cat test.c int main (void) { int a = 2; int b = 1; int t = -1 * ( -0x4000 * a

[Bug tree-optimization/77980] New: Regression in GCC-7.0.0's optimizer.

2016-10-13 Thread ishiura-compiler at ml dot kwansei.ac.jp
tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-7.0.0 and clang-3.8.0 with -O3 option. clang-3.8.0 performed better optimization than GCC-7.0.0. (A.c) #include i

[Bug tree-optimization/71631] New: Wrong constant folding

2016-06-23 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 7.0.0 for x86_64 miscompiles the following code. % cat test.c volatile char buff = 0; void PRINTF(const char* s) { while(*s++) buff = *s; } int a = 1; int b

[Bug tree-optimization/71608] New: Wrong constant folding

2016-06-21 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC 7.0.0 for x86_64 miscompiles the following code. % cat test.c int x = 0x4000; int main (void) { int t = - 0x7FFF - ( -2 * x ) ; if (t != 1

[Bug tree-optimization/71563] New: Regression in GCC-7.0.0's optimizer.

2016-06-16 Thread ishiura-compiler at ml dot kwansei.ac.jp
tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-7.0.0 and GCC-5.2.1 with -O3 option. GCC-5.2.1 performed better optimization than GCC-7.0.0. (A.c) int main () { vol

[Bug tree-optimization/71521] New: Regression in GCC-7.0.0's optimizer

2016-06-13 Thread ishiura-compiler at ml dot kwansei.ac.jp
tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-7.0.0 and GCC-5.2.1 with -O3 option. GCC-5.2.1 performed better optimization than GCC-7.0.0. (A.c) int x = 1; int

[Bug tree-optimization/68528] New: Wrong constant folding

2015-11-24 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC-6.0 for x86_64 miscompiles the following code. $ cat test.c #define INT_MIN ( -2147483647 - 1 ) int main (void) { int x0 = INT_MIN; long x1 = 0L; int x2

[Bug c/68431] New: Regression in GCC-6.0.0's optimizer

2015-11-18 Thread ishiura-compiler at ml dot kwansei.ac.jp
nt: c Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-5.2.1 and GCC-6.0.0 with -O3 option. GCC-5.2.1 performed better optimization than GCC-6.0.0. Note that "unsigned int" is 3

[Bug c/68217] New: Wrong constant folding

2015-11-04 Thread ishiura-compiler at ml dot kwansei.ac.jp
: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC-6.0.0 miscompiles the following code. $ cat error.c int main(void){ volatile int a = -1; long long b = -9223372036854775807LL-1; // LLONG_MIN long long x = (a & b);

[Bug c/68067] New: Wrong constant folding

2015-10-23 Thread ishiura-compiler at ml dot kwansei.ac.jp
: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- GCC-6.0.0 miscompiles the following code. GCC-4.3.6 or later versions miscompile too. $cat error.c int main(void) { int a = -1; static int b = -2147483647 - 1; static int c

[Bug c/68026] New: Regression in GCC-6.0.0's optimizer

2015-10-19 Thread ishiura-compiler at ml dot kwansei.ac.jp
nt: c Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-5.1.0 and GCC-6.0.0 with -O3 option. GCC-5.1.0 performed better optimization than GCC-6.0.0. (A.c) int main (void) { volatil

[Bug tree-optimization/67949] Regression in GCC-6.0.0's optimizer

2015-10-14 Thread ishiura-compiler at ml dot kwansei.ac.jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67949 --- Comment #3 from Ishiura Lab Compiler Team --- We are very sorry that somehow we failed to do final check with the latest trunk before submitting the report.

[Bug tree-optimization/67949] New: Regression in GCC-6.0.0's optimizer

2015-10-13 Thread ishiura-compiler at ml dot kwansei.ac.jp
tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-5.1.0 and GCC-6.0.0 with -O3 option. GCC-5.1.0 performed better optimization than GCC-6.0.0. (A.c) #include int x11

[Bug tree-optimization/66299] New: more optimize oppotunity

2015-05-27 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target Milestone: --- We compiled a program (A.c) by GCC-6.0.0 and LLVM/Clang-3.7.0 with -O3 option. LLVM/Clang worked better on this test case, where the shift operation is optimized out

[Bug tree-optimization/64992] More optimize opportunity

2015-02-15 Thread ishiura-compiler at ml dot kwansei.ac.jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64992 --- Comment #4 from Ishiura Lab Compiler Team --- FYI, clang-3.6 -O3 seems to do the same optimization on "org.c" as well as on "opt.c."

[Bug tree-optimization/64992] More optimize opportunity

2015-02-14 Thread ishiura-compiler at ml dot kwansei.ac.jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64992 --- Comment #3 from Ishiura Lab Compiler Team --- Looking only from outside, the two programs are virtually equal, so we just wondered what hinders the optimization on one of the programs. The Optimization on "opt.c" seems very strong, so we th

[Bug tree-optimization/64992] New: More optimize opportunity

2015-02-09 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp The two programs (A.c) and (B.c) only differ by one line (marked by "// <---HERE"), where (B.c) simply replace local variable b by its initial value 2U. The code (A.s) for

[Bug tree-optimization/61931] Wrong Constant Folding

2014-12-17 Thread ishiura-compiler at ml dot kwansei.ac.jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61931 --- Comment #2 from Ishiura Lab Compiler Team --- We are sorry for having reported an error program with undefined behavior. We have redone minimization. The resulting program is as follows. $ cat test.c int a = 1; int b = 0; int c = 1; int d =

[Bug tree-optimization/64322] New: More optimize opportunity for constant folding

2014-12-15 Thread ishiura-compiler at ml dot kwansei.ac.jp
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp The two programs (A.c) and (B.c) only differ by one line (marked by "// <---HERE"), where (B.c) change 0x1L to 0L. Resulting codes by "x86_64-unk

[Bug tree-optimization/63947] New: Wrong assembly code generation

2014-11-18 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.9.2 for x86_64 miscompiles the following code with optimize option -Os. $ cat error.c unsigned int a = 0U; int t = 0; int main (void) { int b = 0; volatile int c = 0; long

[Bug tree-optimization/63381] New: Wrong constant folding

2014-09-26 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 5.0.0 for x86_64 miscompiles the following code. $ cat test.c int a = 0, b = 0, c = 0, d, e; int main (void) { d = ((20 % (1 != b)) && c) + 2147483647;

[Bug tree-optimization/63380] New: Wrong constant folding

2014-09-26 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 5.0.0 for x86_64 miscompiles the following code. $ cat test.c int a = 0, b = 1, c = 0, d = 1, e, f, g, h; int main () { e = 1 >> d; f = ((31 / (1 >

[Bug tree-optimization/61931] New: Wrong Constant Folding

2014-07-27 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.8.4 for arm miscompiles the following code. $ cat test.c int a, b, c, d, e, f, g, h; long long i; int main (void) { int j; i = a - b | ((1LL * c) >> 1)) / 3

[Bug tree-optimization/61839] New: More optimize opportunity

2014-07-18 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp We have two equvalent programs (A) and (B), which only differ by one line (marked by "// <---HERE"), where (B) simply folds a+972195718 to 972195717, for local variable a=-1. R

[Bug tree-optimization/61224] New: ICE in rtl.h

2014-05-18 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.10.0 ICEs on the following code. (x86_64) $ cat test.c int a, b, d; int main (void) { int c = a && 1; d = 1 << (((c | (b - 842)) << 1) + 1); return 0; } $

[Bug tree-optimization/61045] New: Wrong constant folding

2014-05-03 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.4.7 - 4.10.0 for x86_64 miscompiles the following code. $ cat test.c int main (void) { long a = 0; long b = 0x7FFFL; int t = (a - 2) > (b

[Bug tree-optimization/61010] New: ICE in gcc.c

2014-04-29 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.8 - 4.10 for i686 and x86_64 ICE the following code. /* $ x86_64-unknown-linux-gnu-gcc-4.10.0 test.c x86_64-unknown-linux-gnu-gcc-4.10.0: internal compiler error: Segmentation fault

[Bug tree-optimization/60930] New: Wrong constant folding

2014-04-22 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.7 - 4.10 for i686 and x86_64 miscompiles the following code. $ cat error.c #include int x = 1; main () { unsigned long long t = 0xLLU

[Bug c/60017] New: Struct not returned correctly

2014-01-31 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.9.0 for x86_64 miscompiles the following code. $ cat error.c struct S0 { short m0; short m1; }; struct S1 { unsigned m0 : 1; char m1[2][2]; struct S0 m2[2]; }; struct S1 x = {1

[Bug tree-optimization/58494] New: ICE (verify_ssa failed)

2013-09-21 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp Target: x86_64-pc-linux-gnu GCC 4.9.0 ICEs on the following code. (x86_64) $ cat test.c int g0 = 1; long g1 = 0; int main (void) { int x0 = 1; int x1 = 1

[Bug tree-optimization/58088] New: ICE in gcc.c

2013-08-05 Thread ishiura-compiler at ml dot kwansei.ac.jp
: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.9.0 ICEs on the following code. (i686 and x86_64) $ cat error.c int main (void) { int x = 0; int y = 127 | ( 128 & ( 2 * x )); return 0; } $ i686-pc-linux-gnu-gcc-4

[Bug tree-optimization/57829] New: Wrong constant folding

2013-07-05 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.7.2 - 4.9.0 for i686 and x86_64 miscompiles the following code. $ cat error.c int main (void) { volatile int k = 1; int t = 2 | ( ( k - 1) >> 31 ); if (

[Bug tree-optimization/57656] New: Wrong constant folding

2013-06-19 Thread ishiura-compiler at ml dot kwansei.ac.jp
Assignee: unassigned at gcc dot gnu.org Reporter: ishiura-compiler at ml dot kwansei.ac.jp GCC 4.8.2 for i686 miscompiles the following code. $ cat error.c int main (void) { int a = -1; int b = 2147483647; int c = 2; int t = 1 - ((a - b) / c

[Bug c/57209] New: Wrong code of print statement

2013-05-08 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57209 Bug #: 57209 Summary: Wrong code of print statement Classification: Unclassified Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority:

[Bug rtl-optimization/57131] New: Wong register assignment?

2013-04-30 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57131 Bug #: 57131 Summary: Wong register assignment? Classification: Unclassified Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/57083] New: Wrong constant folding

2013-04-26 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57083 Bug #: 57083 Summary: Wrong constant folding Classification: Unclassified Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/56984] New: GCC-4.8.0 ICE in tree_vrp.c

2013-04-16 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56984 Bug #: 56984 Summary: GCC-4.8.0 ICE in tree_vrp.c Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P

[Bug tree-optimization/56899] New: Wrong constant folding

2013-04-10 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56899 Bug #: 56899 Summary: Wrong constant folding Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/56250] Wrong constant folding on unsigned int

2013-02-07 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56250 --- Comment #3 from Ishiura Lab Compiler Team 2013-02-08 01:59:18 UTC --- (In reply to comment #1) > When I do this: > unsigned x = 2; > unsigned t = (x/2); > unsigned t1 = -t; > unsigned t2 = t2/2; >

[Bug c/56250] New: Wrong constant folding on unsigned int

2013-02-07 Thread ishiura-compiler at ml dot kwansei.ac.jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56250 Bug #: 56250 Summary: Wrong constant folding on unsigned int Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal