I have a function with in-line assembly language. I preceed this function with:
#pragma ASM $REGUSE _population_count( A, B, R4, R5, R6, R7, DPH, DPL ) #pragma ENDASM