https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70821

--- Comment #4 from dhowells at redhat dot com <dhowells at redhat dot com> ---
The patch works, thanks:

000000000000001c <test_atomic_dec_and_test>:
  1c:   f0 ff 0f                lock decl (%rdi)
  1f:   ba 00 00 00 00          mov    $0x0,%edx
  24:   b8 00 00 00 00          mov    $0x0,%eax
  29:   48 0f 44 c2             cmove  %rdx,%rax
  2d:   c3                      retq

Reply via email to