Skip to content

Commit 20799fd

Browse files
authored
[OCaml][test] Use correct data layout string. (llvm#68781)
core.ml would previously set a data layout string of "e" and check that it remained "e". This is fragile when we have the data layout string auto-upgrade facility, and indeed broke when D86310 upgraded this one. As the auto-upgrade logic is not what is being tested here, it seems easier to just use the data layout string that the target expects.
1 parent fac4206 commit 20799fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Bindings/OCaml/core.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ let test_target () =
7171
end;
7272

7373
begin group "layout";
74-
let layout = "e" in
74+
let layout = "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:128-n8:16:32-S128" in
7575
set_data_layout layout m;
7676
insist (layout = data_layout m)
7777
end
78-
(* CHECK: target datalayout = "e"
78+
(* CHECK: target datalayout = "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:128-n8:16:32-S128"
7979
* CHECK: target triple = "i686-apple-darwin8"
8080
*)
8181

0 commit comments

Comments
 (0)