summaryrefslogtreecommitdiff
path: root/TestPrograms/test_x86_cpuid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'TestPrograms/test_x86_cpuid.cxx')
-rw-r--r--TestPrograms/test_x86_cpuid.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/TestPrograms/test_x86_cpuid.cxx b/TestPrograms/test_x86_cpuid.cxx
new file mode 100644
index 00000000..da755a0b
--- /dev/null
+++ b/TestPrograms/test_x86_cpuid.cxx
@@ -0,0 +1,8 @@
+#include <stdint.h>
+int main(int argc, char* argv[])
+{
+ uint32_t a, b, c, d;
+ asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) );
+
+ return 0;
+}