diff --git a/tests/cputest.c b/tests/cputest.c index d3015e4929..a08635b17f 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -854,6 +854,7 @@ mymain(void) DO_TEST_CPUID("x86", "Core-i5-6600", true); DO_TEST_CPUID("x86", "Core-i7-2600", true); DO_TEST_CPUID("x86", "Core-i7-3520M", false); + DO_TEST_CPUID("x86", "Core-i7-3740QM", true); #if WITH_QEMU && WITH_YAJL qemuTestDriverFree(&driver); diff --git a/tests/cputestdata/x86-cpuid-Core-i7-3740QM-guest.xml b/tests/cputestdata/x86-cpuid-Core-i7-3740QM-guest.xml new file mode 100644 index 0000000000..f5125d47ce --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i7-3740QM-guest.xml @@ -0,0 +1,23 @@ + + x86_64 + IvyBridge + Intel + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Core-i7-3740QM-host.xml b/tests/cputestdata/x86-cpuid-Core-i7-3740QM-host.xml new file mode 100644 index 0000000000..80d3a9d820 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i7-3740QM-host.xml @@ -0,0 +1,23 @@ + + x86_64 + IvyBridge + Intel + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Core-i7-3740QM-json.xml b/tests/cputestdata/x86-cpuid-Core-i7-3740QM-json.xml new file mode 100644 index 0000000000..64e1fc9c23 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i7-3740QM-json.xml @@ -0,0 +1,9 @@ + + x86_64 + IvyBridge + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Core-i7-3740QM.json b/tests/cputestdata/x86-cpuid-Core-i7-3740QM.json new file mode 100644 index 0000000000..2b1349f17f --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i7-3740QM.json @@ -0,0 +1,77 @@ +{ + "return": [ + { + "cpuid-register": "EAX", + "cpuid-input-ecx": 1, + "cpuid-input-eax": 13, + "features": 1 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483658, + "features": 0 + }, + { + "cpuid-register": "EAX", + "cpuid-input-eax": 1073741825, + "features": 16777467 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 3221225473, + "features": 0 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483655, + "features": 0 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 2147483649, + "features": 1 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483649, + "features": 672139264 + }, + { + "cpuid-register": "EBX", + "cpuid-input-ecx": 0, + "cpuid-input-eax": 7, + "features": 643 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 1, + "features": 4156170787 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 1, + "features": 260832255 + } + ], + "id": "feature-words" +} + +{ + "return": 6, + "id": "family" +} + +{ + "return": 58, + "id": "model" +} + +{ + "return": 9, + "id": "stepping" +} + +{ + "return": " Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz", + "id": "model-id" +} diff --git a/tests/cputestdata/x86-cpuid-Core-i7-3740QM.xml b/tests/cputestdata/x86-cpuid-Core-i7-3740QM.xml new file mode 100644 index 0000000000..3c40d1195a --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i7-3740QM.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +