diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-10-02 13:57:49 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-10-02 13:57:49 +0200 |
commit | 298fa787da01ded60f2b9d02c9529760aabd2921 (patch) | |
tree | f8697578f8ac6011720f561d5ecc5074849ae142 /src/vhdl/translate/trans_decls.ads | |
parent | 7d642ac4d912c4111769f124a2da97fa83828548 (diff) | |
download | ghdl-298fa787da01ded60f2b9d02c9529760aabd2921.tar.gz ghdl-298fa787da01ded60f2b9d02c9529760aabd2921.tar.bz2 ghdl-298fa787da01ded60f2b9d02c9529760aabd2921.zip |
translate, grt: add lib function for div and rem.
Do not rely on hardware exceptions to catch division by 0, they are caught
in windows by the c handler and not propagated
Diffstat (limited to 'src/vhdl/translate/trans_decls.ads')
-rw-r--r-- | src/vhdl/translate/trans_decls.ads | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/translate/trans_decls.ads b/src/vhdl/translate/trans_decls.ads index 1aac95cff..5587a3339 100644 --- a/src/vhdl/translate/trans_decls.ads +++ b/src/vhdl/translate/trans_decls.ads @@ -182,6 +182,10 @@ package Trans_Decls is Ghdl_Real_Exp : O_Dnode; Ghdl_I32_Exp : O_Dnode; Ghdl_I64_Exp : O_Dnode; + Ghdl_I32_Div : O_Dnode; + Ghdl_I64_Div : O_Dnode; + Ghdl_I32_Mod : O_Dnode; + Ghdl_I64_Mod : O_Dnode; -- Procedure called in case of check failed. Ghdl_Program_Error : O_Dnode; |