brintos

brintos / llvm-project-archived public Read only

0
0
Text · 368 B · b109898 Raw
15 lines · plain
1# RUN: toyc-ch2 %s -emit=mlir 2>&1 | FileCheck %s2 3def main() {4  var a<2, 2> = 5.5;5  print(a);6}7 8# CHECK-LABEL: toy.func @main() {9# CHECK-NEXT:    %0 = toy.constant dense<5.500000e+00> : tensor<f64>10# CHECK-NEXT:    %1 = toy.reshape(%0 : tensor<f64>) to tensor<2x2xf64>11# CHECK-NEXT:    toy.print %1 : tensor<2x2xf64>12# CHECK-NEXT:    toy.return13# CHECK-NEXT:  }14 15