search for: txadd

Displaying 1 result from an estimated 1 matches for "txadd".

Did you mean: xadd
2010 Oct 04
1
[LLVMdev] how to handle inline asm code when converting c++ to C
...change_and_addPii’: main.c:397: error: expected ‘:’ or ‘)’ before string constant main.c: In function ‘_Z16atomic_incrementPi’: main.c:421: error: expected ‘:’ or ‘)’ before string constant For reference here is the line in the code that is causing the above errors: __asm__ volatile ("lock\n\txadd %1, %0" :"=m"(llvm_cbe_asmtmp)"=r"(llvm_cbe_tmp__5) :"m"(*(llvm_cbe_tmp__6))"1"(llvm_cbe_tmp__6)"cc""memory"); I am new to the llvm so if this is not the right forum do let me know. Thanks. Sandeep -------------- ne...