diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-04-27 16:32:13 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-04-27 16:32:13 +0100 |
commit | ab617cf8e6e60e8de3eb8de220f71dd05c18209f (patch) | |
tree | 1e2da8e3edbf48d02f536a21f2cafb6167045c51 /verilog/SelectOp.vp | |
parent | f0867a37e28a1f3670362e7935f9ef30988ddb92 (diff) | |
download | compcert-ab617cf8e6e60e8de3eb8de220f71dd05c18209f.tar.gz compcert-ab617cf8e6e60e8de3eb8de220f71dd05c18209f.zip |
Diffstat (limited to 'verilog/SelectOp.vp')
-rw-r--r-- | verilog/SelectOp.vp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/verilog/SelectOp.vp b/verilog/SelectOp.vp index 31be8c32..99496ba1 100644 --- a/verilog/SelectOp.vp +++ b/verilog/SelectOp.vp @@ -579,4 +579,8 @@ Nondetfunction builtin_arg (e: 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. |