| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |