Skip to content

Commit 5080933

Browse files
committed
Revert "Added semantic for AArch64 built-in function fmin/fmax."
This reverts commit c770672. This is not the actual semantics of the AArch64 fmin and fmax instructions. (NaN behavior; -0.0 treated as less than +0.0.)
1 parent c7daf17 commit 5080933

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

aarch64/Builtins1.v

+4-24
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,15 @@ Require Import String Coqlib.
1919
Require Import AST Integers Floats Values.
2020
Require Import Builtins0.
2121

22-
Inductive platform_builtin : Type :=
23-
| BI_fmin
24-
| BI_fmax.
22+
Inductive platform_builtin : Type := .
2523

2624
Local Open Scope string_scope.
2725

2826
Definition platform_builtin_table : list (string * platform_builtin) :=
29-
("__builtin_fmin", BI_fmin)
30-
:: ("__builtin_fmax", BI_fmax)
31-
:: nil.
27+
nil.
3228

3329
Definition platform_builtin_sig (b: platform_builtin) : signature :=
34-
match b with
35-
| BI_fmin | BI_fmax =>
36-
mksignature (Tfloat :: Tfloat :: nil) Tfloat cc_default
37-
end.
30+
match b with end.
3831

3932
Definition platform_builtin_sem (b: platform_builtin) : builtin_sem (sig_res (platform_builtin_sig b)) :=
40-
match b with
41-
| BI_fmin =>
42-
mkbuiltin_n2t Tfloat Tfloat Tfloat
43-
(fun f1 f2 => match Float.compare f1 f2 with
44-
| Some Eq | Some Lt => f1
45-
| Some Gt | None => f2
46-
end)
47-
| BI_fmax =>
48-
mkbuiltin_n2t Tfloat Tfloat Tfloat
49-
(fun f1 f2 => match Float.compare f1 f2 with
50-
| Some Eq | Some Gt => f1
51-
| Some Lt | None => f2
52-
end)
53-
end.
33+
match b with end.

0 commit comments

Comments
 (0)