Bug 2300 – pause opcode is not well documented

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-08-20T13:11:00Z
Last change time
2015-06-09T05:15:01Z
Assigned to
bugzilla
Creator
manlio.perillo

Comments

Comment #0 by manlio.perillo — 2008-08-20T13:11:54Z
In the "Inline Assembler" documentation it is reported that "pause" opcode is equivalent to rep; nop; This is not true on modern IA-32 CPUs. PAUSE istruction can be executed with: asm { // "pause" opcode is not supported db 0xf3, 0x90; }
Comment #1 by bugzilla — 2008-08-26T02:30:31Z
asm { rep; nop; } does compile to 0xF3 0x90