.file "compare-exchange.c" .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl $0, -8(%rbp) movl $0, %eax movl $1, %edx lock cmpxchgl %edx, -8(%rbp) movl %eax, -4(%rbp) movl $0, %eax popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (GNU) 6.3.1 20161221 (Red Hat 6.3.1-1)" .section .note.GNU-stack,"",@progbits