diff options
author | David Monniaux <David.Monniaux@univ-grenoble-alpes.fr> | 2021-12-17 14:28:00 +0100 |
---|---|---|
committer | David Monniaux <David.Monniaux@univ-grenoble-alpes.fr> | 2021-12-17 14:28:00 +0100 |
commit | 6ee0923290cca4782e6c863d752fb74c2c01df4f (patch) | |
tree | 288d4ea97b2ebf3b7b90bf6cd105d39fd1af70b3 /kvx/SelectOp.vp | |
parent | 0cb4f03fea5f28280d8ce066204f69146fab99b6 (diff) | |
download | compcert-kvx-6ee0923290cca4782e6c863d752fb74c2c01df4f.tar.gz compcert-kvx-6ee0923290cca4782e6c863d752fb74c2c01df4f.zip |
fpdivu
Diffstat (limited to 'kvx/SelectOp.vp')
-rw-r--r-- | kvx/SelectOp.vp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kvx/SelectOp.vp b/kvx/SelectOp.vp index f529907d..70941c48 100644 --- a/kvx/SelectOp.vp +++ b/kvx/SelectOp.vp @@ -742,6 +742,8 @@ Nondetfunction gen_fmaf args := | _ => None end. +Require FPDivision32. + Definition platform_builtin (b: platform_builtin) (args: exprlist) : option expr := match b with | BI_fmin => Some (Eop Ominf args) @@ -752,6 +754,10 @@ Definition platform_builtin (b: platform_builtin) (args: exprlist) : option expr | BI_fmaf => gen_fmaf args | BI_lround_ne => Some (Eop Olongoffloat_ne args) | BI_luround_ne => Some (Eop Olonguoffloat_ne args) + | BI_fp_udiv32 => (match args with + | a:::b:::Enil => Some (FPDivision32.fp_divu32 a b) + | _ => None + end) end. End SELECT. |