Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion x86/Machregs.v
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,15 @@ Definition destroyed_by_setstack (ty: typ): list mreg :=
| _ => nil
end.

(** Calls to variadic functions set the AL register in the ELF ABI
and can copy FP arguments to the CX, DX, R8 and R9 registers in the Win64 ABI.
(See file Asmexpand.ml.) Mark those registers as destroyed,
so that the register containing the function address to call is preserved. *)

Definition destroyed_at_indirect_call: list mreg :=
AX :: nil.
if Archi.win64
then CX :: DX :: R8 :: R9 :: nil
else AX :: nil.

Definition temp_for_parent_frame: mreg :=
AX.
Expand Down
Loading