[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2018-11-19 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 Uroš Bizjak changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #8

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #7 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 17:16:18 2017 New Revision: 252513 URL: https://gcc.gnu.org/viewcvs?rev=252513&root=gcc&view=rev Log: PR target/46091 * config/i386/i386.md (*btsq_imm): Rename

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #6 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 17:02:09 2017 New Revision: 252445 URL: https://gcc.gnu.org/viewcvs?rev=252445&root=gcc&view=rev Log: PR target/46091 * config/i386/i386.md (*anddi_1_btr): Cha

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #5 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 16:57:52 2017 New Revision: 252427 URL: https://gcc.gnu.org/viewcvs?rev=252427&root=gcc&view=rev Log: PR target/46091 * config/i386/i386.md (*anddi_1_btr): New

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-21 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #4 from uros at gcc dot gnu.org --- Author: uros Date: Mon Aug 21 15:15:07 2017 New Revision: 251235 URL: https://gcc.gnu.org/viewcvs?rev=251235&root=gcc&view=rev Log: PR target/46091 * config/i386/i386.md (*btsq_imm):

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-16 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #3 from uros at gcc dot gnu.org --- Author: uros Date: Wed Aug 16 15:25:34 2017 New Revision: 251124 URL: https://gcc.gnu.org/viewcvs?rev=251124&root=gcc&view=rev Log: PR target/46091 * config/i386/i386.md (*anddi_1_bt

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #11 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #10) > I'll look into this a bit some more. However, these insn should be rare, so > do not expect any noticeable application speed-up ... From the Agner lists, it is n

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #10 from Uroš Bizjak --- (In reply to Avi Kivity from comment #9) > I believe the comment is wrong. Here's what the manual says: > > "This instruction can be used with a LOCK prefix to allow the instruction to > be executed atomicall

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread a...@cloudius-systems.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #9 from Avi Kivity --- I believe the comment is wrong. Here's what the manual says: "This instruction can be used with a LOCK prefix to allow the instruction to be executed atomically." Implying that without the LOCK prefix, it is n

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #8 from Uroš Bizjak --- (In reply to Uroš Bizjak from comment #7) > From i386.md: > > ;; %%% bts, btr, btc, bt. > ;; In general these instructions are *slow* when applied to memory, > ;; since they enforce atomic operation. When app

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #7 from Uroš Bizjak --- From i386.md: ;; %%% bts, btr, btc, bt. ;; In general these instructions are *slow* when applied to memory, ;; since they enforce atomic operation. When applied to registers, ;; it depends on the cpu implemen

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread a...@cloudius-systems.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #6 from Avi Kivity --- I believe bts/btc/btr can do more - they also calculate the word offset when addressing memory, see first comment.

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 Uroš Bizjak changed: What|Removed |Added Target||x86_64 Status|ASSIGNED

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #4 from uros at gcc dot gnu.org --- Author: uros Date: Mon Aug 14 16:42:15 2017 New Revision: 251095 URL: https://gcc.gnu.org/viewcvs?rev=251095&root=gcc&view=rev Log: PR target/46091 * config/i386/i386.md (*anddi_1_bt

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-14 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 Uroš Bizjak changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2017-08-11 Thread a...@cloudius-systems.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 --- Comment #2 from Avi Kivity --- Another instance: unsigned long clear(unsigned long x) { return x & ~ ((unsigned long)1 << 63); } This compiles to movabs+andq, while it could compile to a single btr instruction.

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2014-08-18 Thread a...@cloudius-systems.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 Avi Kivity changed: What|Removed |Added CC||a...@cloudius-systems.com --- Comment #1 fr

[Bug target/46091] missed optimization: x86 bt/btc/bts instructions

2010-10-27 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46091 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Severity|no