1// RUN: mlir-opt %s --convert-memref-to-llvm | \ 2// RUN: mlir-cpu-runner -e entry -entry-point-result=void 3 4// 5// Code should not crash on the complex32 sparse constant. 6// 7module attributes {llvm.data_layout = ""} { 8 memref.global "private" constant @"__constant_32xcomplex<f32>_0" : memref<32xcomplex<f32>> = 9 sparse<[[1], [28], [31]], 10 [(1.000000e+00,0.000000e+00), (2.000000e+00,0.000000e+00), (3.000000e+00,0.000000e+00)] 11 > {alignment = 128 : i64} 12 llvm.func @entry() { 13 %0 = memref.get_global @"__constant_32xcomplex<f32>_0" : memref<32xcomplex<f32>> 14 llvm.return 15 } 16} 17