Proof with eauto 10 with wd.
intros.
unfold compare_longs...
Qed.
Hint Resolve valid_val_compare_longs : wd.

(* Specifications: *)
Lemma regset_wd_compare_ints:
forall f rs m v1 v2,
regset_wd f rs ->
regset_wd f (compare_ints v1 v2 rs m).