Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: syzygy/core/disassembler_util_unittest.cc

Issue 2507113002: Add support for the vbroadcastss instruction. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « syzygy/core/disassembler_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/core/disassembler_util_unittest.cc
diff --git a/syzygy/core/disassembler_util_unittest.cc b/syzygy/core/disassembler_util_unittest.cc
index 393c43a959073db6e94ec0a2a1a0b5eab0beac8a..94c6285bac32d9d403fed0083687341d38073f69 100644
--- a/syzygy/core/disassembler_util_unittest.cc
+++ b/syzygy/core/disassembler_util_unittest.cc
@@ -124,6 +124,7 @@ const uint8_t kVpermd[] = {0xC4, 0xE2, 0x4D, 0x36, 0xC0};
const uint8_t kVbroadcasti128[] = {0xC4, 0xE2, 0x7D, 0x5A, 0x45, 0xD0};
const uint8_t kVinserti128[] = {0xC4, 0xE3, 0x7D, 0x38, 0x2C, 0x0F, 0x01};
const uint8_t kVpbroadcastb[] = {0xC4, 0xE2, 0x79, 0x78, 0xC0};
+const uint8_t kVbroadcastss[] = {0xC4, 0xE2, 0x7d, 0x18, 0xC0};
const uint8_t kVextracti128[] = {0xC4, 0xE3, 0x7D, 0x39, 0xC8, 0x01};
const uint8_t kVcvtps2ph[] = {0xC4, 0xE3, 0x79, 0x1D, 0xC8, 0x00};
const uint8_t kVcvtps2ps[] = {0xC4, 0xE2, 0x79, 0x13, 0xE0};
@@ -386,6 +387,11 @@ TEST(DisassemblerUtilTest, TestBadlyDecodedVpbroadcastb) {
kVpbroadcastb, sizeof(kVpbroadcastb)));
}
+TEST(DisassemblerUtilTest, TestBadlyDecodedVbroadcastss) {
+ EXPECT_NO_FATAL_FAILURE(TestBadlyDecodedInstruction(
+ kVpbroadcastb, sizeof(kVbroadcastss)));
+}
+
TEST(DisassemblerUtilTest, TestBadlyDecodedVextracti128) {
EXPECT_NO_FATAL_FAILURE(TestBadlyDecodedInstruction(
kVextracti128, sizeof(kVextracti128)));
« no previous file with comments | « syzygy/core/disassembler_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698