In GCC4.2(Xcode3), I use %R0/%Q0 to specify the high/low part of double word operand in inline assembly. But the following code generates error in llvm-gcc (Xcode4): error: invalid operand in inline asm: 'mov ${0:D}, $1
Can someone point me a solution?
long long v1 = 0;
long v2 = 1;
__asm__(
"mov %R0, %1\n\t"
: "=&r" (v1)
: "r" (v2)
);