[PATCH] D113883: [fir] Add tests for mlir::ComplexType conversion
Diana Picus via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 18 04:57:29 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0800109d2633: [fir] Add tests for mlir::ComplexType conversion (authored by rovka).
Repository:
rG LLVM Github Monorepo
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.388161.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211118/cbea454c/attachment.bin>
More information about the llvm-commits
mailing list