[PATCH] D113883: [fir] Add tests for mlir::ComplexType conversion

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 16 04:51:12 PST 2021


rovka updated this revision to Diff 387578.
rovka retitled this revision from "[fir] Add mlir::ComplexType conversion" to "[fir] Add tests for mlir::ComplexType conversion".
rovka edited the summary of this revision.

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

https://reviews.llvm.org/D113883

Files:
  flang/test/Fir/types-to-llvm.fir


Index: flang/test/Fir/types-to-llvm.fir
===================================================================
--- flang/test/Fir/types-to-llvm.fir
+++ flang/test/Fir/types-to-llvm.fir
@@ -196,6 +196,34 @@
 
 // -----
 
+// Test MLIR `complex<KIND>` conversion.
+
+func private @foo0(%arg0: complex<f16>)
+// CHECK-LABEL: foo0
+// CHECK-SAME: !llvm.struct<(f16, f16)>)
+
+func private @foo1(%arg0: complex<bf16>)
+// CHECK-LABEL: foo1
+// CHECK-SAME: !llvm.struct<(bf16, bf16)>)
+
+func private @foo2(%arg0: complex<f32>)
+// CHECK-LABEL: foo2
+// CHECK-SAME: !llvm.struct<(f32, f32)>)
+
+func private @foo3(%arg0: complex<f64>)
+// CHECK-LABEL: foo3
+// CHECK-SAME: !llvm.struct<(f64, f64)>)
+
+func private @foo4(%arg0: complex<f80>)
+// CHECK-LABEL: foo4
+// CHECK-SAME: !llvm.struct<(f80, f80)>)
+
+func private @foo5(%arg0: complex<f128>)
+// CHECK-LABEL: foo5
+// CHECK-SAME: !llvm.struct<(f128, f128)>)
+
+// -----
+
 // Test `!fir.complex<KIND>` conversion.
 
 func private @foo0(%arg0: !fir.complex<2>)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113883.387578.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211116/730c600d/attachment.bin>


More information about the llvm-commits mailing list