As far as I undersand, correct one seems like that: .intel_syntax xbegin $0 nop
.att_syntax xbegin ($0) nop Which disassembles into: 0000000000000000 <.text>: 0: c7 f8 00 00 00 00 xbeginq 0x6 6: 90 nop 7: c7 f8 00 00 00 00 xbeginq 0xd d: 90 nop K On Tue, Feb 21, 2012 at 4:37 PM, Jakub Jelinek <ja...@redhat.com> wrote: > On Tue, Feb 21, 2012 at 04:30:01PM +0400, Kirill Yukhin wrote: >> I've played ".+6" and it seems to be working, although I'd rather >> prefer "$0" much better, since it is not deal with insn+ops length. >> Will prepare updated patch later today > > xbegin $0 > seems to work only for Intel syntax, not AT&T. xbegin .+6 works with both. > Error: operand type mismatch for `xbegin' > is the error I get from gas trunk. > > Jakub