@@ -166,7 +166,6 @@ using EncoderBZcond = uint32_t (*)(uint32_t rj, int32_t offs21);
166
166
using EncoderBCZcond = uint32_t (*)(uint8_t cj, int32_t offs21);
167
167
168
168
TEST_F(LoongArch64EmulatorTester, testJIRL) {
169
- bool success = false;
170
169
addr_t old_pc = 0x12000600;
171
170
WritePC(old_pc);
172
171
// JIRL r1, r12, 0x10
@@ -184,7 +183,6 @@ TEST_F(LoongArch64EmulatorTester, testJIRL) {
184
183
}
185
184
186
185
TEST_F(LoongArch64EmulatorTester, testB) {
187
- bool success = false;
188
186
addr_t old_pc = 0x12000600;
189
187
WritePC(old_pc);
190
188
// B 0x10010
@@ -199,7 +197,6 @@ TEST_F(LoongArch64EmulatorTester, testB) {
199
197
}
200
198
201
199
TEST_F(LoongArch64EmulatorTester, testBL) {
202
- bool success = false;
203
200
addr_t old_pc = 0x12000600;
204
201
WritePC(old_pc);
205
202
// BL 0x10010
@@ -218,7 +215,6 @@ TEST_F(LoongArch64EmulatorTester, testBL) {
218
215
static void testBcondBranch(LoongArch64EmulatorTester *tester,
219
216
EncoderBcond encoder, bool branched,
220
217
uint64_t rj_val, uint64_t rd_val) {
221
- bool success = false;
222
218
addr_t old_pc = 0x12000600;
223
219
tester->WritePC(old_pc);
224
220
tester->gpr.gpr[12] = rj_val;
@@ -234,7 +230,6 @@ static void testBcondBranch(LoongArch64EmulatorTester *tester,
234
230
static void testBZcondBranch(LoongArch64EmulatorTester *tester,
235
231
EncoderBZcond encoder, bool branched,
236
232
uint64_t rj_val) {
237
- bool success = false;
238
233
addr_t old_pc = 0x12000600;
239
234
tester->WritePC(old_pc);
240
235
tester->gpr.gpr[4] = rj_val;
@@ -249,7 +244,6 @@ static void testBZcondBranch(LoongArch64EmulatorTester *tester,
249
244
static void testBCZcondBranch(LoongArch64EmulatorTester *tester,
250
245
EncoderBCZcond encoder, bool branched,
251
246
uint32_t cj_val) {
252
- bool success = false;
253
247
addr_t old_pc = 0x12000600;
254
248
tester->WritePC(old_pc);
255
249
tester->fpr.fcc = cj_val;
0 commit comments