aboutsummaryrefslogtreecommitdiffstats
path: root/x86/SelectOp.vp
diff options
context:
space:
mode:
Diffstat (limited to 'x86/SelectOp.vp')
-rw-r--r--x86/SelectOp.vp6
1 files changed, 5 insertions, 1 deletions
diff --git a/x86/SelectOp.vp b/x86/SelectOp.vp
index 2a09207b..3b64411e 100644
--- a/x86/SelectOp.vp
+++ b/x86/SelectOp.vp
@@ -587,4 +587,8 @@ Definition divfs_base (e1: expr) (e2: expr) :=
(** Platform-specific known builtins *)
Definition platform_builtin (b: platform_builtin) (args: exprlist) : option expr :=
- None.
+ match b, args with
+ | BI_fmax, e1 ::: e2 ::: Enil => Some (Eop Omaxf (e1 ::: e2 ::: Enil))
+ | BI_fmin, e1 ::: e2 ::: Enil => Some (Eop Ominf (e1 ::: e2 ::: Enil))
+ | _, _ => None
+ end.