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

Side by Side Diff: syzygy/core/disassembler_util.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 unified diff | Download patch
« no previous file with comments | « no previous file | syzygy/core/disassembler_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 case 0x01: { 52 case 0x01: {
53 switch (ci->code[3]) { 53 switch (ci->code[3]) {
54 case 0x1D: return 5; // vpermd 54 case 0x1D: return 5; // vpermd
55 default: break; 55 default: break;
56 } 56 }
57 break; 57 break;
58 } 58 }
59 case 0x02: { 59 case 0x02: {
60 switch (ci->code[3]) { 60 switch (ci->code[3]) {
61 case 0x13: return 5; // vcvtps2ps 61 case 0x13: return 5; // vcvtps2ps
62 case 0x18: return 5; // vbroadcastss
62 case 0x36: return 5; // vpermd 63 case 0x36: return 5; // vpermd
63 case 0x5A: return 6; // vbroadcasti128 64 case 0x5A: return 6; // vbroadcasti128
64 case 0x78: return 5; // vpbroadcastb 65 case 0x78: return 5; // vpbroadcastb
65 default: break; 66 default: break;
66 } 67 }
67 break; 68 break;
68 } 69 }
69 case 0x03: { 70 case 0x03: {
70 switch (ci->code[3]) { 71 switch (ci->code[3]) {
71 case 0x00: return 6; // vpermq 72 case 0x00: return 6; // vpermq
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 429
429 default: return assm::kRegisterNone; 430 default: return assm::kRegisterNone;
430 } 431 }
431 } 432 }
432 433
433 const Register& GetRegister(uint32_t distorm_reg_type) { 434 const Register& GetRegister(uint32_t distorm_reg_type) {
434 return Register::Get(GetRegisterId(distorm_reg_type)); 435 return Register::Get(GetRegisterId(distorm_reg_type));
435 } 436 }
436 437
437 } // namespace core 438 } // namespace core
OLDNEW
« no previous file with comments | « no previous file | syzygy/core/disassembler_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698