brintos

brintos / llvm-project-archived public Read only

0
0
Text · 605 B · d540e64 Raw
17 lines · plain
1// RUN: mlir-opt %s --finalize-memref-to-llvm | \2// RUN:   mlir-runner -e entry -entry-point-result=void3 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.return15  }16}17