Re: Inline assembly doesn't like constant 64bit values... Help?

2011-02-07 Thread Gilboa Davara
On Fri, 2011-02-04 at 09:43 +0200, Udi Finkelstein wrote: I'm not an x86-64 expert, but it implies from intel docs that 64 bit immediate values are supported only for the MOV instruction: Udi You're correct. I re-check both Intel and AMD documents and neither one support imm64 in any

Inline assembly doesn't like constant 64bit values... Help?

2011-02-03 Thread Gilboa Davara
Hello all, I'm trying to pass the following command inside GCC inline assembly block (which targets x86_64 kernel and usermode). asm volatile { ... andq $0x, %%r11 ; ... } And getting the following error: 'Error: operand type mismatch for `and'' The

Re: Inline assembly doesn't like constant 64bit values... Help?

2011-02-03 Thread Udi Finkelstein
I'm not an x86-64 expert, but it implies from intel docs that 64 bit immediate values are supported only for the MOV instruction: http://www.intel.com/assets/pdf/manual/253666.pdf --- 2.2.1.5 Immediates In 64-bit mode, the typical size of immediate operands remains 32 bits. When