================
@@ -57,3 +57,15 @@ bool boolfunc() { return true; }
// CHECK: %0 = cir.const #true
// CHECK: cir.return %0 : !cir.bool
// CHECK: }
+
+float floatfunc() { return 42.42f; }
+// CHECK: cir.func @floatfunc() -> !cir.float {
+// CHECK: %0 = cir.const #cir.fp<4.242000e+01> : !cir.float
----------------
andykaylor wrote:
I haven't looked into how these values get printed, but I would expect the
behavior to be similar to LLVM IR, which while it is as you note inconsistent
is generally stable.
https://github.com/llvm/llvm-project/pull/129304
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits