| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #ifndef NACL_TRUSTED_BUT_NOT_TCB | 6 #ifndef NACL_TRUSTED_BUT_NOT_TCB |
| 7 #error This file is not meant for use in the TCB | 7 #error This file is not meant for use in the TCB |
| 8 #endif | 8 #endif |
| 9 | 9 |
| 10 #include "native_client/src/trusted/validator_arm/inst_classes_testers.h" | 10 #include "native_client/src/trusted/validator_arm/inst_classes_testers.h" |
| (...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2410 ApplySanityChecks(Instruction inst, | 2410 ApplySanityChecks(Instruction inst, |
| 2411 const NamedClassDecoder& decoder) { | 2411 const NamedClassDecoder& decoder) { |
| 2412 NC_PRECOND(BarrierInstTester::ApplySanityChecks(inst, decoder)); | 2412 NC_PRECOND(BarrierInstTester::ApplySanityChecks(inst, decoder)); |
| 2413 | 2413 |
| 2414 EXPECT_EQ(static_cast<uint32_t>(0xF), expected_decoder_.option.value(inst)) | 2414 EXPECT_EQ(static_cast<uint32_t>(0xF), expected_decoder_.option.value(inst)) |
| 2415 << "Expected forbidden operands for option" << InstContents(); | 2415 << "Expected forbidden operands for option" << InstContents(); |
| 2416 | 2416 |
| 2417 return true; | 2417 return true; |
| 2418 } | 2418 } |
| 2419 | 2419 |
| 2420 // RoadblockTester | 2420 // PermanentlyUndefinedTester |
| 2421 bool RoadblockTester::ApplySanityChecks(Instruction inst, | 2421 bool PermanentlyUndefinedTester::ApplySanityChecks(Instruction inst, |
| 2422 const NamedClassDecoder& decoder) { | 2422 const NamedClassDecoder& decoder) { |
| 2423 // Check if expected class name found. | 2423 // Check if expected class name found. |
| 2424 NC_PRECOND(CondDecoderTester::ApplySanityChecks(inst, decoder)); | 2424 NC_PRECOND(CondDecoderTester::ApplySanityChecks(inst, decoder)); |
| 2425 | 2425 |
| 2426 return true; | 2426 return true; |
| 2427 } | 2427 } |
| 2428 | 2428 |
| 2429 } // namespace nacl_arm_test | 2429 } // namespace nacl_arm_test |
| OLD | NEW |