[LLVMbugs] [Bug 8935] New: [MC x86] does not know xgetbv instruction
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 8 15:29:07 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8935
Summary: [MC x86] does not know xgetbv instruction
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kaffeemonster at googlemail.com
CC: llvmbugs at cs.uiuc.edu
TOT at 123092
int test_cpu_feature_avx_callback(void)
{
unsigned low, high;
asm volatile(
"xgetbv\n"
: /* %0 */ "=a" (low),
/* %1 */ "=d" (high)
: /* %2 */ "c" (0)
);
if((low & 0x06) != 0x06)
return 0;
return 1;
};
$ clang -c xgetbv.c
xgetbv.c:5:3: error: invalid instruction mnemonic 'xgetbv'
"xgetbv\n"
^
<inline asm>:1:2: note: instantiated into assembly here
xgetbv
^
1 error generated.
Greetings
Jan
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list