Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/BASM    [ Add a report in this area ]  
Report #:  80128   Status: Open
XGETBV instruction not recognised
Project:  Delphi Build #:  14.0.3539.24502
Version:    14.0 Submitted By:   Philipp S
Report Type:  Basic functionality failure Date Reported:  12/7/2009 1:21:09 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   273900
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The assembly instruction XGETBV (Get Value of Extended Control Register; opcode 0F 01 D0) is not recognised by the assembler.

This instruction is used e.g. for checking whether the AVX instruction set can be used on a machine.


Reference:
Intel? 64 and IA-32 Architectures
Software Developer? Manual
Volume 2B:
Instruction Set Reference, N-Z
Steps to Reproduce:
asm
  push ebx
  mov eax,1
  cpuid
  bt ecx, 27  // CPUID.1:ECX.OSXSAVE[bit 27] = 1: XGETBV available and enabled for application use
  jnc @not_supported
    XGETBV  // <- [DCC Error]  E2003 Undeclared identifier: 'xgetbv'
  @not_supported:
  pop ebx
end;
Workarounds
db 0Fh, 01h, 0D0h //XGETBV
Attachment
None
Comments

None

Server Response from: ETNACODE01