[llvm-commits] [patch] Change the 11 byte nop

Chris Lattner clattner at apple.com
Mon Nov 15 13:49:02 PST 2010


On Oct 27, 2010, at 12:40 PM, Rafael EspĂ­ndola wrote:

> I have no idea if using two 0x66 prefixes is faster or not (the Intel
> manual goes till 9 bytes), but this matches what gnu as does.

Looks great to me, please apply.  It should be faster than the old approach, because it is one instruction instead of two:

$ llvm-mc -disassemble
0x66 0x66 0x2e 0x0f 0x1f 0x84 0 0 0 0 0
^D
	nopw	%cs:(%rax,%rax)

$ llvm-mc -disassemble
0x0f 0x1f 0x44 00 00 0x66 0x0f 0x1f 0x44 00 00
^D
	nopl	(%rax,%rax)
	nopw	(%rax,%rax)





More information about the llvm-commits mailing list