I am looking for documentation on the asm syntax that I can use with the 6.1 PGI compilers. I have a little snippet like
asm volatile (“lock; incl %0”
and I get compilation errors along the lines of
/tmp/pgCCbaaaafqpaA.s: Assembler messages:
/tmp/pgCCbaaaafqpaA.s:103: Error: bad register name `%0’
which seems to strongly suggest that the asm syntax that I would have used with a gnu compiler will not work for me here (this does work with my gnu compilers). There is presumably a document on how to use the newly introduced asm and I would like to have a copy of that. I’ve searched the web and this site (in vain evidently).
Thanks in advance.