On the automorphic spectrum of non-quasi-split groups