aboutsummaryrefslogtreecommitdiffstats
path: root/kvx/SelectOp.vp
diff options
context:
space:
mode:
authorDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-12-17 14:28:00 +0100
committerDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-12-17 14:28:00 +0100
commit6ee0923290cca4782e6c863d752fb74c2c01df4f (patch)
tree288d4ea97b2ebf3b7b90bf6cd105d39fd1af70b3 /kvx/SelectOp.vp
parent0cb4f03fea5f28280d8ce066204f69146fab99b6 (diff)
downloadcompcert-kvx-6ee0923290cca4782e6c863d752fb74c2c01df4f.tar.gz
compcert-kvx-6ee0923290cca4782e6c863d752fb74c2c01df4f.zip
fpdivu
Diffstat (limited to 'kvx/SelectOp.vp')
-rw-r--r--kvx/SelectOp.vp6
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.