@@ -265,14 +265,11 @@ let test_constants () =
265
265
* CHECK: @const_nuw_mul = global i64 mul nuw
266
266
* CHECK: @const_xor = global i64 xor
267
267
* CHECK: @const_icmp = global i1 icmp sle
268
- * CHECK: @const_fcmp = global i1 fcmp ole
269
268
*)
270
269
let void_ptr = pointer_type context in
271
270
let five = const_int i64_type 5 in
272
- let ffive = const_uitofp five double_type in
273
271
let foldbomb_gv = define_global " FoldBomb" (const_null i8_type) m in
274
272
let foldbomb = const_ptrtoint foldbomb_gv i64_type in
275
- let ffoldbomb = const_uitofp foldbomb double_type in
276
273
ignore (define_global " const_neg" (const_neg foldbomb) m);
277
274
ignore (define_global " const_nsw_neg" (const_nsw_neg foldbomb) m);
278
275
ignore (define_global " const_nuw_neg" (const_nuw_neg foldbomb) m);
@@ -288,7 +285,6 @@ let test_constants () =
288
285
ignore (define_global " const_nuw_mul" (const_nuw_mul foldbomb five) m);
289
286
ignore (define_global " const_xor" (const_xor foldbomb five) m);
290
287
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);
292
288
293
289
group " constant casts" ;
294
290
(* CHECK: const_trunc{{.*}}trunc
@@ -305,7 +301,7 @@ let test_constants () =
305
301
i32_type) m);
306
302
ignore (define_global " const_inttoptr" (const_inttoptr (const_add foldbomb five)
307
303
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);
309
305
310
306
group " misc constants" ;
311
307
(* CHECK: const_size_of{{.*}}getelementptr{{.*}}null
0 commit comments