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

Side by Side Diff: src/trusted/validator_arm/gen/arm32_decode_named.cc

Issue 11569019: Fix uses in ARM table media_instructions. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The Native Client Authors. All rights reserved. 2 * Copyright 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 // DO NOT EDIT: GENERATED CODE 7 // DO NOT EDIT: GENERATED CODE
8 8
9 #ifndef NACL_TRUSTED_BUT_NOT_TCB 9 #ifndef NACL_TRUSTED_BUT_NOT_TCB
10 #error This file is not meant for use in the TCB 10 #error This file is not meant for use in the TCB
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 /* 1356 /*
1357 * Implementation of table media_instructions. 1357 * Implementation of table media_instructions.
1358 * Specified by: ('See Section A5.4',) 1358 * Specified by: ('See Section A5.4',)
1359 */ 1359 */
1360 const NamedClassDecoder& NamedArm32DecoderState::decode_media_instructions( 1360 const NamedClassDecoder& NamedArm32DecoderState::decode_media_instructions(
1361 const nacl_arm_dec::Instruction inst) const { 1361 const nacl_arm_dec::Instruction inst) const {
1362 1362
1363 if ((inst.Bits() & 0x01F00000) == 0x01800000 /* op1(24:20)=11000 */ && 1363 if ((inst.Bits() & 0x01F00000) == 0x01800000 /* op1(24:20)=11000 */ &&
1364 (inst.Bits() & 0x000000E0) == 0x00000000 /* op2(7:5)=000 */ && 1364 (inst.Bits() & 0x000000E0) == 0x00000000 /* op2(7:5)=000 */ &&
1365 (inst.Bits() & 0x0000F000) != 0x0000F000 /* Rd(15:12)=~1111 */) { 1365 (inst.Bits() & 0x0000F000) != 0x0000F000 /* Rd(15:12)=~1111 */) {
1366 return Binary4RegisterDualOp_Usada8_Rule_254_A1_P502_instance_; 1366 return Binary4RegisterDualOp_USADA8_instance_;
1367 } 1367 }
1368 1368
1369 if ((inst.Bits() & 0x01F00000) == 0x01800000 /* op1(24:20)=11000 */ && 1369 if ((inst.Bits() & 0x01F00000) == 0x01800000 /* op1(24:20)=11000 */ &&
1370 (inst.Bits() & 0x000000E0) == 0x00000000 /* op2(7:5)=000 */ && 1370 (inst.Bits() & 0x000000E0) == 0x00000000 /* op2(7:5)=000 */ &&
1371 (inst.Bits() & 0x0000F000) == 0x0000F000 /* Rd(15:12)=1111 */) { 1371 (inst.Bits() & 0x0000F000) == 0x0000F000 /* Rd(15:12)=1111 */) {
1372 return Binary3RegisterOpAltA_Usad8_Rule_253_A1_P500_instance_; 1372 return Binary3RegisterOpAltA_USAD8_instance_;
1373 } 1373 }
1374 1374
1375 if ((inst.Bits() & 0x01F00000) == 0x01F00000 /* op1(24:20)=11111 */ && 1375 if ((inst.Bits() & 0x01F00000) == 0x01F00000 /* op1(24:20)=11111 */ &&
1376 (inst.Bits() & 0x000000E0) == 0x000000E0 /* op2(7:5)=111 */) { 1376 (inst.Bits() & 0x000000E0) == 0x000000E0 /* op2(7:5)=111 */) {
1377 return PermanentlyUndefined_Udf_Rule_A1_instance_; 1377 return PermanentlyUndefined_UDF_instance_;
1378 } 1378 }
1379 1379
1380 if ((inst.Bits() & 0x01E00000) == 0x01A00000 /* op1(24:20)=1101x */ && 1380 if ((inst.Bits() & 0x01E00000) == 0x01A00000 /* op1(24:20)=1101x */ &&
1381 (inst.Bits() & 0x00000060) == 0x00000040 /* op2(7:5)=x10 */) { 1381 (inst.Bits() & 0x00000060) == 0x00000040 /* op2(7:5)=x10 */) {
1382 return Binary2RegisterBitRangeNotRnIsPcBitfieldExtract_Sbfx_Rule_154_A1_P308 _instance_; 1382 return Binary2RegisterBitRangeNotRnIsPcBitfieldExtract_SBFX_instance_;
1383 } 1383 }
1384 1384
1385 if ((inst.Bits() & 0x01E00000) == 0x01C00000 /* op1(24:20)=1110x */ && 1385 if ((inst.Bits() & 0x01E00000) == 0x01C00000 /* op1(24:20)=1110x */ &&
1386 (inst.Bits() & 0x00000060) == 0x00000000 /* op2(7:5)=x00 */ && 1386 (inst.Bits() & 0x00000060) == 0x00000000 /* op2(7:5)=x00 */ &&
1387 (inst.Bits() & 0x0000000F) != 0x0000000F /* Rn(3:0)=~1111 */) { 1387 (inst.Bits() & 0x0000000F) != 0x0000000F /* Rn(3:0)=~1111 */) {
1388 return Binary2RegisterBitRangeMsbGeLsb_Bfi_Rule_18_A1_P48_instance_; 1388 return Binary2RegisterBitRangeMsbGeLsb_BFI_instance_;
1389 } 1389 }
1390 1390
1391 if ((inst.Bits() & 0x01E00000) == 0x01C00000 /* op1(24:20)=1110x */ && 1391 if ((inst.Bits() & 0x01E00000) == 0x01C00000 /* op1(24:20)=1110x */ &&
1392 (inst.Bits() & 0x00000060) == 0x00000000 /* op2(7:5)=x00 */ && 1392 (inst.Bits() & 0x00000060) == 0x00000000 /* op2(7:5)=x00 */ &&
1393 (inst.Bits() & 0x0000000F) == 0x0000000F /* Rn(3:0)=1111 */) { 1393 (inst.Bits() & 0x0000000F) == 0x0000000F /* Rn(3:0)=1111 */) {
1394 return Unary1RegisterBitRangeMsbGeLsb_Bfc_17_A1_P46_instance_; 1394 return Unary1RegisterBitRangeMsbGeLsb_BFC_instance_;
1395 } 1395 }
1396 1396
1397 if ((inst.Bits() & 0x01E00000) == 0x01E00000 /* op1(24:20)=1111x */ && 1397 if ((inst.Bits() & 0x01E00000) == 0x01E00000 /* op1(24:20)=1111x */ &&
1398 (inst.Bits() & 0x00000060) == 0x00000040 /* op2(7:5)=x10 */) { 1398 (inst.Bits() & 0x00000060) == 0x00000040 /* op2(7:5)=x10 */) {
1399 return Binary2RegisterBitRangeNotRnIsPcBitfieldExtract_Ubfx_Rule_236_A1_P466 _instance_; 1399 return Unary1RegisterBitRangeMsbGeLsb_UBFX_instance_;
1400 } 1400 }
1401 1401
1402 if ((inst.Bits() & 0x01C00000) == 0x00000000 /* op1(24:20)=000xx */) { 1402 if ((inst.Bits() & 0x01C00000) == 0x00000000 /* op1(24:20)=000xx */) {
1403 return decode_parallel_addition_and_subtraction_signed(inst); 1403 return decode_parallel_addition_and_subtraction_signed(inst);
1404 } 1404 }
1405 1405
1406 if ((inst.Bits() & 0x01C00000) == 0x00400000 /* op1(24:20)=001xx */) { 1406 if ((inst.Bits() & 0x01C00000) == 0x00400000 /* op1(24:20)=001xx */) {
1407 return decode_parallel_addition_and_subtraction_unsigned(inst); 1407 return decode_parallel_addition_and_subtraction_unsigned(inst);
1408 } 1408 }
1409 1409
(...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after
3555 decode_named(const nacl_arm_dec::Instruction inst) const { 3555 decode_named(const nacl_arm_dec::Instruction inst) const {
3556 return decode_ARMv7(inst); 3556 return decode_ARMv7(inst);
3557 } 3557 }
3558 3558
3559 const nacl_arm_dec::ClassDecoder& NamedArm32DecoderState:: 3559 const nacl_arm_dec::ClassDecoder& NamedArm32DecoderState::
3560 decode(const nacl_arm_dec::Instruction inst) const { 3560 decode(const nacl_arm_dec::Instruction inst) const {
3561 return decode_named(inst).named_decoder(); 3561 return decode_named(inst).named_decoder();
3562 } 3562 }
3563 3563
3564 } // namespace nacl_arm_test 3564 } // namespace nacl_arm_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698