Could also forbid self-replication of weaponized robots.
Not sarcastic.
Pacifism is an unstable configuration; non-aggression is.
Laws as written have all kinds of obvious loopholes, but they are intentionally vague enough that a judge can look at your "obvious loophole" and decide that you are in violation anyway.
That Google, Apple, Uber et al pay so very little tax suggests that that is an optimistic appraisal.
Killing AI is not the same problem with nuclear weapon. Because AI weapon is far easier to make compare to nuclear one. Technically, you can do it right now with your DJI drone, all it takes is just to program it to do some automatic control.
So I'm not quite optimistic about any attempt on limit those kind of weapons base on current condition we are in.
Yet, people stopped mentioning this kind of warning even it was already there for way over half of a century.
Reason of we successfully limited use of nuclear weapon is because, well, the US tested it on Japanese, saw the devastating result and thinking "What if the Japanese (Or Russian, Chinese etc) one day use it on us?".
I would guess only similar event can trigger everyone on earth stand in line and effectively ban those AI weapons all together. That's AFTER we all actually be seriously hurt by it.
It's just like the warning of globe warming, the math is there, proved by observation, somebody out there still believe we will be fine because the whole globe warming thing is just a conspiracy made by China.