@@ -166,7 +166,6 @@ using EncoderBZcond = uint32_t (*)(uint32_t rj, int32_t offs21);
166166using EncoderBCZcond = uint32_t (*)(uint8_t cj, int32_t offs21);
167167
168168TEST_F (LoongArch64EmulatorTester, testJIRL) {
169- bool success = false ;
170169 addr_t old_pc = 0x12000600 ;
171170 WritePC (old_pc);
172171 // JIRL r1, r12, 0x10
@@ -184,7 +183,6 @@ TEST_F(LoongArch64EmulatorTester, testJIRL) {
184183}
185184
186185TEST_F (LoongArch64EmulatorTester, testB) {
187- bool success = false ;
188186 addr_t old_pc = 0x12000600 ;
189187 WritePC (old_pc);
190188 // B 0x10010
@@ -199,7 +197,6 @@ TEST_F(LoongArch64EmulatorTester, testB) {
199197}
200198
201199TEST_F (LoongArch64EmulatorTester, testBL) {
202- bool success = false ;
203200 addr_t old_pc = 0x12000600 ;
204201 WritePC (old_pc);
205202 // BL 0x10010
@@ -218,7 +215,6 @@ TEST_F(LoongArch64EmulatorTester, testBL) {
218215static void testBcondBranch (LoongArch64EmulatorTester *tester,
219216 EncoderBcond encoder, bool branched,
220217 uint64_t rj_val, uint64_t rd_val) {
221- bool success = false ;
222218 addr_t old_pc = 0x12000600 ;
223219 tester->WritePC (old_pc);
224220 tester->gpr .gpr [12 ] = rj_val;
@@ -234,7 +230,6 @@ static void testBcondBranch(LoongArch64EmulatorTester *tester,
234230static void testBZcondBranch (LoongArch64EmulatorTester *tester,
235231 EncoderBZcond encoder, bool branched,
236232 uint64_t rj_val) {
237- bool success = false ;
238233 addr_t old_pc = 0x12000600 ;
239234 tester->WritePC (old_pc);
240235 tester->gpr .gpr [4 ] = rj_val;
@@ -249,7 +244,6 @@ static void testBZcondBranch(LoongArch64EmulatorTester *tester,
249244static void testBCZcondBranch (LoongArch64EmulatorTester *tester,
250245 EncoderBCZcond encoder, bool branched,
251246 uint32_t cj_val) {
252- bool success = false ;
253247 addr_t old_pc = 0x12000600 ;
254248 tester->WritePC (old_pc);
255249 tester->fpr .fcc = cj_val;
0 commit comments