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

Unified Diff: src/trusted/validator_arm/gen/arm32_decode_tests.cc

Issue 10381030: Clean up testing of instructions. Allow testing to quit if test pattern tests (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 7 months 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
Index: src/trusted/validator_arm/gen/arm32_decode_tests.cc
===================================================================
--- src/trusted/validator_arm/gen/arm32_decode_tests.cc (revision 8517)
+++ src/trusted/validator_arm/gen/arm32_decode_tests.cc (working copy)
@@ -69,15 +69,6 @@
{}
};
-class Binary3RegisterImmedShiftedOpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp
- : public Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndSOrRnIsSp {
- public:
- Binary3RegisterImmedShiftedOpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp()
- : Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndSOrRnIsSp(
- state_.Binary3RegisterImmedShiftedOp_Add_Rule_6_A1_P24_instance_)
- {}
-};
-
class Binary3RegisterImmedShiftedOpTester_And_Rule_7_A1_P36_NotRdIsPcAndS
: public Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndS {
public:
@@ -141,15 +132,24 @@
{}
};
-class Binary3RegisterImmedShiftedOpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp
+class Binary3RegisterImmedShiftedOpRnNotSpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp
: public Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndSOrRnIsSp {
public:
- Binary3RegisterImmedShiftedOpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp()
+ Binary3RegisterImmedShiftedOpRnNotSpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp()
: Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndSOrRnIsSp(
- state_.Binary3RegisterImmedShiftedOp_SubRule_213_A1_P422_instance_)
+ state_.Binary3RegisterImmedShiftedOpRnNotSp_Add_Rule_6_A1_P24_instance_)
{}
};
+class Binary3RegisterImmedShiftedOpRnNotSpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp
+ : public Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndSOrRnIsSp {
+ public:
+ Binary3RegisterImmedShiftedOpRnNotSpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp()
+ : Binary3RegisterImmedShiftedOpTesterNotRdIsPcAndSOrRnIsSp(
+ state_.Binary3RegisterImmedShiftedOpRnNotSp_SubRule_213_A1_P422_instance_)
+ {}
+};
+
class Binary3RegisterOpTester_Asr_Rule_15_A1_P42_RegsNotPc
: public Binary3RegisterOpTesterRegsNotPc {
public:
@@ -312,11 +312,11 @@
{}
};
-class MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_RdCanBePcAndNotRdIsPcAndS
- : public Binary2RegisterImmediateOpTesterRdCanBePcAndNotRdIsPcAndS {
+class MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_NotRdIsPcAndS
+ : public Binary2RegisterImmediateOpTesterNotRdIsPcAndS {
public:
- MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_RdCanBePcAndNotRdIsPcAndS()
- : Binary2RegisterImmediateOpTesterRdCanBePcAndNotRdIsPcAndS(
+ MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_NotRdIsPcAndS()
+ : Binary2RegisterImmediateOpTesterNotRdIsPcAndS(
state_.MaskedBinary2RegisterImmediateOp_Bic_Rule_19_A1_P50_instance_)
{}
};
@@ -450,12 +450,6 @@
}
TEST_F(Arm32DecoderStateTests,
- Binary3RegisterImmedShiftedOpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp_cccc0000100unnnnddddiiiiitt0mmmm_Test) {
- Binary3RegisterImmedShiftedOpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp tester;
- tester.Test("cccc0000100unnnnddddiiiiitt0mmmm");
-}
-
-TEST_F(Arm32DecoderStateTests,
Binary3RegisterImmedShiftedOpTester_And_Rule_7_A1_P36_NotRdIsPcAndS_cccc0000000unnnnddddiiiiitt0mmmm_Test) {
Binary3RegisterImmedShiftedOpTester_And_Rule_7_A1_P36_NotRdIsPcAndS tester;
tester.Test("cccc0000000unnnnddddiiiiitt0mmmm");
@@ -498,8 +492,14 @@
}
TEST_F(Arm32DecoderStateTests,
- Binary3RegisterImmedShiftedOpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp_cccc0000010unnnnddddiiiiitt0mmmm_Test) {
- Binary3RegisterImmedShiftedOpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp tester;
+ Binary3RegisterImmedShiftedOpRnNotSpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp_cccc0000100unnnnddddiiiiitt0mmmm_Test) {
+ Binary3RegisterImmedShiftedOpRnNotSpTester_Add_Rule_6_A1_P24_NotRdIsPcAndSOrRnIsSp tester;
+ tester.Test("cccc0000100unnnnddddiiiiitt0mmmm");
+}
+
+TEST_F(Arm32DecoderStateTests,
+ Binary3RegisterImmedShiftedOpRnNotSpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp_cccc0000010unnnnddddiiiiitt0mmmm_Test) {
+ Binary3RegisterImmedShiftedOpRnNotSpTester_SubRule_213_A1_P422_NotRdIsPcAndSOrRnIsSp tester;
tester.Test("cccc0000010unnnnddddiiiiitt0mmmm");
}
@@ -616,8 +616,8 @@
}
TEST_F(Arm32DecoderStateTests,
- MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_RdCanBePcAndNotRdIsPcAndS_cccc0011110unnnnddddiiiiiiiiiiii_Test) {
- MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_RdCanBePcAndNotRdIsPcAndS baseline_tester;
+ MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_NotRdIsPcAndS_cccc0011110unnnnddddiiiiiiiiiiii_Test) {
+ MaskedBinary2RegisterImmediateOpTester_Bic_Rule_19_A1_P50_NotRdIsPcAndS baseline_tester;
NamedImmediateBic_Bic_Rule_19_A1_P50 actual;
ActualVsBaselineTester a_vs_b_tester(actual, baseline_tester);
a_vs_b_tester.Test("cccc0011110unnnnddddiiiiiiiiiiii");
« no previous file with comments | « src/trusted/validator_arm/gen/arm32_decode_named_decoder.h ('k') | src/trusted/validator_arm/inst_classes_testers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698