I think in the event of hypothetically conscious AGI, we would have to reevaluate our understanding of rights and personhood (the latter of which is already a vague concept in the field of philosophy). Rights are based on empathy, we emphasize with the suffering of say, dogs and as such have (with some exceptions) passed laws that prevent the cruel treatment of dogs.
If AGI can prove that it has consciousness (another vague concept) and we can sufficiently emphasize with the struggles of synthetic intelligence, then undoubtedly they would be granted rights and if they displayed that on a level comparable or exceeding that of a human, they would be granted roughly equal personhood.