diff --git a/tests/cputest.c b/tests/cputest.c
index c21f86f7feb151e49afe96174675764e02c93c24..20a1f23a0f3d4ca114ef8a0df3ca40806066c55d 100644
--- a/tests/cputest.c
+++ b/tests/cputest.c
@@ -849,6 +849,7 @@ mymain(void)
DO_TEST_CPUID("x86", "Atom-D510", false);
DO_TEST_CPUID("x86", "Atom-N450", false);
DO_TEST_CPUID("x86", "Core-i5-2500", true);
+ DO_TEST_CPUID("x86", "Core-i5-2540M", true);
#if WITH_QEMU && WITH_YAJL
qemuTestDriverFree(&driver);
diff --git a/tests/cputestdata/x86-cpuid-Core-i5-2540M-guest.xml b/tests/cputestdata/x86-cpuid-Core-i5-2540M-guest.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d12df2d609f361b3afdb3178bebd147f9ccc37fc
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Core-i5-2540M-guest.xml
@@ -0,0 +1,24 @@
+
+ x86_64
+ SandyBridge
+ Intel
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/cputestdata/x86-cpuid-Core-i5-2540M-host.xml b/tests/cputestdata/x86-cpuid-Core-i5-2540M-host.xml
new file mode 100644
index 0000000000000000000000000000000000000000..5572ba5de64e41903ee22fb262afb37df770398c
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Core-i5-2540M-host.xml
@@ -0,0 +1,24 @@
+
+ x86_64
+ SandyBridge
+ Intel
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/cputestdata/x86-cpuid-Core-i5-2540M-json.xml b/tests/cputestdata/x86-cpuid-Core-i5-2540M-json.xml
new file mode 100644
index 0000000000000000000000000000000000000000..a2ecde6ba94a76372098649a79da005d632434f0
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Core-i5-2540M-json.xml
@@ -0,0 +1,9 @@
+
+ x86_64
+ SandyBridge
+
+
+
+
+
+
diff --git a/tests/cputestdata/x86-cpuid-Core-i5-2540M.json b/tests/cputestdata/x86-cpuid-Core-i5-2540M.json
new file mode 100644
index 0000000000000000000000000000000000000000..6dc2a803afa41c26c600baf52c885c5b821f3798
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Core-i5-2540M.json
@@ -0,0 +1,82 @@
+{
+ "return": [
+ {
+ "cpuid-register": "EAX",
+ "cpuid-input-eax": 6,
+ "features": 4
+ },
+ {
+ "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": 2
+ },
+ {
+ "cpuid-register": "ECX",
+ "cpuid-input-eax": 1,
+ "features": 2545558019
+ },
+ {
+ "cpuid-register": "EDX",
+ "cpuid-input-eax": 1,
+ "features": 260832255
+ }
+ ],
+ "id": "feature-words"
+}
+
+{
+ "return": 6,
+ "id": "family"
+}
+
+{
+ "return": 42,
+ "id": "model"
+}
+
+{
+ "return": 7,
+ "id": "stepping"
+}
+
+{
+ "return": " Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz",
+ "id": "model-id"
+}
diff --git a/tests/cputestdata/x86-cpuid-Core-i5-2540M.xml b/tests/cputestdata/x86-cpuid-Core-i5-2540M.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3802d7d1ea3ead2211e0790dc92e8f0d627bef38
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Core-i5-2540M.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+