[PATCH] D113014: [fir] Add fir.zero_bits conversion pattern to LLVM IR dialect

Kiran Chandramohan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 2 06:56:08 PDT 2021


kiranchandramohan added inline comments.


================
Comment at: flang/test/Fir/convert-to-llvm.fir:121
+  %z0 = fir.zero_bits f16
+  %z1 = fir.zero_bits f32
+  %z2 = fir.zero_bits f64
----------------
What about f80 and f24?


================
Comment at: flang/test/Fir/convert-to-llvm.fir:129
+// CHECK: %{{.*}} = llvm.mlir.constant(0.000000e+00 : f32) : f32
+// CHECK: %{{.*}} = llvm.mlir.constant(0.000000e+00 : f128) : f128
+// CHECK-NOT: fir.zero_bits
----------------
Missed f64.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113014/new/

https://reviews.llvm.org/D113014



More information about the llvm-commits mailing list