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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
t...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs