Then I think you'd have to work your way down from there. We'd have to really ensure that these things have no capacity for learning, emotions or pain if we want to abuse these things with no ethical qualms.
I dont think this is as axiomatic as people think. Why should we give them rights? Should a program be able to own a house and displace a human? If they are effectively immortal, can continously learn, and consistently act logically, giving them human rights will eventually force humans into an underclass, because we dont have those advantages (i understand this is a bit hyperbolic).
If you are interested in equity at all between humans an AI, i think you have to take into account the advantages an ai might have and give humans a lot more rights to counteract those advantages.
>i think you have to take into account the advantages an ai might have
Yes. No disagreement there.