move priv test to above illegal/trap test