[Bug rtl-optimization/30455] i386 generates unnecessary TEST instructions for arithmetic ops on memory

2017-04-20 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30455 Uroš Bizjak changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/30455] i386 generates unnecessary TEST instructions for arithmetic ops on memory

2007-01-13 Thread ubizjak at gmail dot com
--- Comment #1 from ubizjak at gmail dot com 2007-01-13 23:27 --- Addition (addl) operates in CCGOCmode and is not compatible with requested CCZmode. Following that, test insn will be eliminated in this example: int add_zf(int *x, int y, int a, int b) { if ((*x + y) 0)

[Bug rtl-optimization/30455] i386 generates unnecessary TEST instructions for arithmetic ops on memory

2007-01-13 Thread ubizjak at gmail dot com
--- Comment #2 from ubizjak at gmail dot com 2007-01-13 23:43 --- (In reply to comment #1) Combine pass then creates: (insn 15 14 16 2 (parallel [ (set (reg:SI 58 [ temp.27 ]) (plus:SI (reg/v:SI 62 [ y ]) (mem:SI (reg/v/f:DI 61 [