From 11018c3d46845722daf73883ce3959afdd6ac92f Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Tue, 2 Feb 2021 16:34:28 +0100 Subject: Cmov Tsingle --- riscV/ExtValues.v | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'riscV/ExtValues.v') diff --git a/riscV/ExtValues.v b/riscV/ExtValues.v index aebbe5c5..edf359ef 100644 --- a/riscV/ExtValues.v +++ b/riscV/ExtValues.v @@ -111,3 +111,13 @@ Proof. f_equal. apply Float.of_to_bits. Qed. + +Lemma single_bits_normalize: + forall v1, + ExtValues.single_of_bits (Val.normalize (ExtValues.bits_of_single v1) AST.Tint) = + Val.normalize v1 AST.Tsingle. +Proof. + destruct v1; cbn; trivial. + f_equal. + apply Float32.of_to_bits. +Qed. -- cgit