Skip to content

Commit 3dff285

Browse files
committed
[OCaml] Fix tests after const_uitofp removal (NFC)
1 parent 2c61f9c commit 3dff285

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/test/Bindings/OCaml/core.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,11 @@ let test_constants () =
265265
* CHECK: @const_nuw_mul = global i64 mul nuw
266266
* CHECK: @const_xor = global i64 xor
267267
* CHECK: @const_icmp = global i1 icmp sle
268-
* CHECK: @const_fcmp = global i1 fcmp ole
269268
*)
270269
let void_ptr = pointer_type context in
271270
let five = const_int i64_type 5 in
272-
let ffive = const_uitofp five double_type in
273271
let foldbomb_gv = define_global "FoldBomb" (const_null i8_type) m in
274272
let foldbomb = const_ptrtoint foldbomb_gv i64_type in
275-
let ffoldbomb = const_uitofp foldbomb double_type in
276273
ignore (define_global "const_neg" (const_neg foldbomb) m);
277274
ignore (define_global "const_nsw_neg" (const_nsw_neg foldbomb) m);
278275
ignore (define_global "const_nuw_neg" (const_nuw_neg foldbomb) m);
@@ -288,7 +285,6 @@ let test_constants () =
288285
ignore (define_global "const_nuw_mul" (const_nuw_mul foldbomb five) m);
289286
ignore (define_global "const_xor" (const_xor foldbomb five) m);
290287
ignore (define_global "const_icmp" (const_icmp Icmp.Sle foldbomb five) m);
291-
ignore (define_global "const_fcmp" (const_fcmp Fcmp.Ole ffoldbomb ffive) m);
292288

293289
group "constant casts";
294290
(* CHECK: const_trunc{{.*}}trunc
@@ -305,7 +301,7 @@ let test_constants () =
305301
i32_type) m);
306302
ignore (define_global "const_inttoptr" (const_inttoptr (const_add foldbomb five)
307303
void_ptr) m);
308-
ignore (define_global "const_bitcast" (const_bitcast ffoldbomb i64_type) m);
304+
ignore (define_global "const_bitcast" (const_bitcast foldbomb double_type) m);
309305

310306
group "misc constants";
311307
(* CHECK: const_size_of{{.*}}getelementptr{{.*}}null

0 commit comments

Comments
 (0)