[Bug target/25230] __sync_add_and_fetch does not use condition flags from subl

2021-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25230 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/25230] __sync_add_and_fetch does not use condition flags from subl

2005-12-02 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-02 20:44 --- Actually it should generate code like: lock; addl $-1,(%rdi) jne .L4 jmp release .L4: ret --- The lock is fully needed for correct behavior. Confirmed. -- pinskia at gcc dot gnu dot org changed: