diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-02-23 08:23:10 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-02-23 08:23:10 +0000 |
commit | 11db3838a8cbfd09ecca368e87305054832a4719 (patch) | |
tree | b48fb36fe0709ea794ffecbfca92680e3227edc3 /ia32/Machregs.v | |
parent | 5af448143e8d548a8d73d8ed613156e331ca0e0b (diff) | |
download | compcert-11db3838a8cbfd09ecca368e87305054832a4719.tar.gz compcert-11db3838a8cbfd09ecca368e87305054832a4719.zip |
In Regalloc, dead code elimination, don't eliminate move operations
that pop the x87 FP stack (var <- FP0). Otherwise, (void) f();
where f returns a float eventually produces a FP stack overflow.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2416 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'ia32/Machregs.v')
-rw-r--r-- | ia32/Machregs.v | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ia32/Machregs.v b/ia32/Machregs.v index 47340ecb..85b561e3 100644 --- a/ia32/Machregs.v +++ b/ia32/Machregs.v @@ -69,6 +69,9 @@ Module IndexedMreg <: INDEXED_TYPE. Qed. End IndexedMreg. +Definition is_stack_reg (r: mreg) : bool := + match r with FP0 => true | _ => false end. + (** ** Destroyed registers, preferred registers *) Definition destroyed_by_op (op: operation): list mreg := |