> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan  5 14:18:41 UTC 2024 x86_64 GNU/Linux
 21:00:46  up   0:16,  2 users,  load average: 0.67, 0.87, 0.61
This commit is contained in:
tracer-ysyx 2024-01-19 21:00:46 +08:00 committed by xinyangli
parent 6ae1b559b8
commit 16c5601d6d

View file

@ -152,7 +152,7 @@ struct {
{"0--0x1", 0x1}, {"0--0x1", 0x1},
}, reg_exprs[] = { }, reg_exprs[] = {
{"$ra", 0x1}, {"$ra", 0x1},
{"4*$ra", 0x4}, {"0x2 + 4*-$a7", 0xFFFFFFBEU},
}; };
START_TEST(test_expr_negative_operand) { START_TEST(test_expr_negative_operand) {
yy_scan_string(exprs[_i].expr); yy_scan_string(exprs[_i].expr);