File tree Expand file tree Collapse file tree 19 files changed +42
-42
lines changed
testsuite/tests/typing-layouts-float32
testsuite/tests/lib-extensions Expand file tree Collapse file tree 19 files changed +42
-42
lines changed Original file line number Diff line number Diff line change 1
1
alpha.mli
2
2
alpha.ml
3
- float32.mli
4
- float32.ml
Original file line number Diff line number Diff line change 1
- module Float32 = Float32
2
- module Float32_u = Float32_u
Original file line number Diff line number Diff line change 1
- module Float32 = Float32
2
- module Float32_u = Float32_u
Original file line number Diff line number Diff line change 41
41
(alpha.cmxs as alpha/alpha.cmxs)
42
42
(alpha.cma as alpha/alpha.cma)
43
43
(alpha.mli as alpha/alpha.mli)
44
- (float32.mli as alpha/float32.mli)
45
- (float32_u.mli as alpha/float32_u.mli)
46
44
(.alpha.objs/byte/alpha.cmi as alpha/alpha.cmi)
47
45
(.alpha.objs/byte/alpha.cmt as alpha/alpha.cmt)
48
46
(.alpha.objs/byte/alpha.cmti as alpha/alpha.cmti)
49
- (.alpha.objs/native/alpha.cmx as alpha/alpha.cmx)
50
- (.alpha.objs/byte/float32.cmi as alpha/float32.cmi)
51
- (.alpha.objs/byte/float32.cmt as alpha/float32.cmt)
52
- (.alpha.objs/byte/float32.cmti as alpha/float32.cmti)
53
- (.alpha.objs/native/float32.cmx as alpha/float32.cmx)
54
- (.alpha.objs/byte/float32_u.cmi as alpha/float32_u.cmi)
55
- (.alpha.objs/byte/float32_u.cmt as alpha/float32_u.cmt)
56
- (.alpha.objs/byte/float32_u.cmti as alpha/float32_u.cmti)
57
- (.alpha.objs/native/float32_u.cmx as alpha/float32_u.cmx))
47
+ (.alpha.objs/native/alpha.cmx as alpha/alpha.cmx))
58
48
(section lib)
59
49
(package ocaml))
Original file line number Diff line number Diff line change 1
1
beta.mli
2
2
beta.ml
3
+ float32.mli
4
+ float32.ml
Original file line number Diff line number Diff line change
1
+ module Float32 = Float32
2
+ module Float32_u = Float32_u
Original file line number Diff line number Diff line change
1
+ module Float32 = Float32
2
+ module Float32_u = Float32_u
Original file line number Diff line number Diff line change 41
41
(beta.cmxs as beta/beta.cmxs)
42
42
(beta.cma as beta/beta.cma)
43
43
(beta.mli as beta/beta.mli)
44
+ (float32.mli as beta/float32.mli)
45
+ (float32_u.mli as beta/float32_u.mli)
44
46
(.beta.objs/byte/beta.cmi as beta/beta.cmi)
45
47
(.beta.objs/byte/beta.cmt as beta/beta.cmt)
46
48
(.beta.objs/byte/beta.cmti as beta/beta.cmti)
47
- (.beta.objs/native/beta.cmx as beta/beta.cmx))
49
+ (.beta.objs/native/beta.cmx as beta/beta.cmx)
50
+ (.beta.objs/byte/float32.cmi as beta/float32.cmi)
51
+ (.beta.objs/byte/float32.cmt as beta/float32.cmt)
52
+ (.beta.objs/byte/float32.cmti as beta/float32.cmti)
53
+ (.beta.objs/native/float32.cmx as beta/float32.cmx)
54
+ (.beta.objs/byte/float32_u.cmi as beta/float32_u.cmi)
55
+ (.beta.objs/byte/float32_u.cmt as beta/float32_u.cmt)
56
+ (.beta.objs/byte/float32_u.cmti as beta/float32_u.cmti)
57
+ (.beta.objs/native/float32_u.cmx as beta/float32_u.cmx))
48
58
(section lib)
49
59
(package ocaml))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
(* TEST
2
2
flambda2;
3
3
{
4
- include alpha ;
5
- flags = "-extension-universe alpha ";
4
+ include beta ;
5
+ flags = "-extension-universe beta ";
6
6
native;
7
7
}
8
8
*)
15
15
floats. *)
16
16
17
17
module Float32_u = struct
18
- include Alpha .Float32_u
18
+ include Beta .Float32_u
19
19
20
20
let ( + ) = add
21
21
let ( - ) = sub
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ module Exist_pair = struct
79
79
| Pair (Layouts, m ) -> m
80
80
| Pair (SIMD, () ) -> Stable
81
81
| Pair (Labeled_tuples, () ) -> Stable
82
- | Pair (Small_numbers, () ) -> Alpha
82
+ | Pair (Small_numbers, () ) -> Beta
83
83
84
84
let is_erasable : t -> bool = function Pair (ext , _ ) -> is_erasable ext
85
85
Original file line number Diff line number Diff line change 12
12
(executables
13
13
(names float32_builtin float32_lib float32_u_lib)
14
14
(modules float32_builtin float32_lib float32_u_lib)
15
- (libraries alpha )
15
+ (libraries beta )
16
16
(foreign_archives stubs)
17
17
(ocamlopt_flags
18
- (:standard -extension-universe alpha )))
18
+ (:standard -extension-universe beta )))
19
19
20
20
(rule
21
21
(enabled_if
64
64
float32_builtin_internal
65
65
float32_lib_internal
66
66
float32_u_lib_internal)
67
- (libraries alpha )
67
+ (libraries beta )
68
68
(enabled_if
69
69
(<> %{system} macosx))
70
70
(foreign_archives stubs)
71
71
(ocamlopt_flags
72
- (:standard -extension-universe alpha -internal-assembler)))
72
+ (:standard -extension-universe beta -internal-assembler)))
73
73
74
74
(rule
75
75
(enabled_if
Original file line number Diff line number Diff line change 1
1
2
2
(* Tests for the float32 otherlib *)
3
3
4
- module F32 = Alpha .Float32
4
+ module F32 = Beta .Float32
5
5
6
6
module CF32 = struct
7
7
type t = float32
Original file line number Diff line number Diff line change 1
1
2
2
(* Tests for the float32 otherlib *)
3
3
4
- module F32 = Alpha .Float32_u
4
+ module F32 = Beta .Float32_u
5
5
6
6
external box_int32 : int32 # -> (int32 [@ local_opt]) = " %box_int32"
7
7
external unbox_int32 : (int32 [@ local_opt]) -> int32 # = " %unbox_int32"
Original file line number Diff line number Diff line change 9
9
*)
10
10
11
11
open Alpha
12
-
13
- (* Test that [Float32] is exported. *)
14
-
15
- let () =
16
- let one = Float32. of_float 1.0 in
17
- assert (Float32. to_float one = 1.0 )
18
- ;;
19
-
20
- (* Test that [Float32_u] is exported. *)
21
-
22
- let () =
23
- let one = Float32_u. of_int 1 in
24
- assert (Float32_u. to_int one = 1 )
25
- ;;
Original file line number Diff line number Diff line change 9
9
*)
10
10
11
11
open Beta
12
+
13
+ (* Test that [Float32] is exported. *)
14
+
15
+ let () =
16
+ let one = Float32. of_float 1.0 in
17
+ assert (Float32. to_float one = 1.0 )
18
+ ;;
19
+
20
+ (* Test that [Float32_u] is exported. *)
21
+
22
+ let () =
23
+ let one = Float32_u. of_int 1 in
24
+ assert (Float32_u. to_int one = 1 )
25
+ ;;
You can’t perform that action at this time.
0 commit comments