diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-07-23 08:54:56 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-07-23 08:54:56 +0000 |
commit | 2a0168fea37b68ad14e2cb60bf215111e49d4870 (patch) | |
tree | 2f59373790d8ce3a5df66ef7a692271cf0666c6c /cfrontend/Initializersproof.v | |
parent | 00805153cf9b88aa07cc6694b17d93f5ba2e7de8 (diff) | |
download | compcert-2a0168fea37b68ad14e2cb60bf215111e49d4870.tar.gz compcert-2a0168fea37b68ad14e2cb60bf215111e49d4870.zip |
Merge of "newspilling" branch:
- Support single-precision floats as first-class values
- Introduce chunks Many32, Many64 and types Tany32, Tany64 to
support saving and restoring registers without knowing
the exact types (int/single/float) of their contents, just
their sizes.
- Memory model: generalize the opaque encoding of pointers to
apply to any value, not just pointers, if chunks Many32/Many64
are selected.
- More properties of FP arithmetic proved.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2537 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cfrontend/Initializersproof.v')
-rw-r--r-- | cfrontend/Initializersproof.v | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/cfrontend/Initializersproof.v b/cfrontend/Initializersproof.v index f11901d7..16004fc0 100644 --- a/cfrontend/Initializersproof.v +++ b/cfrontend/Initializersproof.v @@ -506,6 +506,9 @@ Proof. (* float *) destruct ty; try discriminate. destruct f1; inv EQ2; simpl in H2; inv H2; assumption. + (* single *) + destruct ty; try discriminate. + destruct f1; inv EQ2; simpl in H2; inv H2; assumption. (* pointer *) unfold inj in H. assert (data = Init_addrof b1 ofs1 /\ chunk = Mint32). @@ -525,20 +528,18 @@ Lemma transl_init_single_size: Genv.init_data_size data = sizeof ty. Proof. intros. monadInv H. destruct x0. - monadInv EQ2. - destruct ty; try discriminate. +- monadInv EQ2. +- destruct ty; try discriminate. destruct i0; inv EQ2; auto. inv EQ2; auto. inv EQ2; auto. - destruct ty; inv EQ2; auto. - destruct ty; try discriminate. +- destruct ty; inv EQ2; auto. +- destruct ty; try discriminate. destruct f0; inv EQ2; auto. - destruct ty; try discriminate. - destruct i0; auto. - inv EQ2. - inv EQ2. - inv EQ2; auto. - inv EQ2. +- destruct ty; try discriminate. + destruct f0; inv EQ2; auto. +- destruct ty; try discriminate. + destruct i0; inv EQ2; auto. inv EQ2; auto. inv EQ2; auto. Qed. |