[PATCH] LoongArch: Fix MAX_REG_OFFSET calculation