Mercurial > hg > CbC > CbC_llvm
comparison mlir/test/Examples/Toy/Ch7/scalar.toy @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 0572611fdcc8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 # RUN: toyc-ch7 %s -emit=mlir 2>&1 | FileCheck %s | |
2 | |
3 def main() { | |
4 var a<2, 2> = 5.5; | |
5 print(a); | |
6 } | |
7 | |
8 # CHECK-LABEL: func @main() { | |
9 # CHECK-NEXT: %0 = "toy.constant"() {value = dense<5.500000e+00> : tensor<f64>} : () -> tensor<f64> | |
10 # CHECK-NEXT: %1 = "toy.reshape"(%0) : (tensor<f64>) -> tensor<2x2xf64> | |
11 # CHECK-NEXT: "toy.print"(%1) : (tensor<2x2xf64>) -> () | |
12 # CHECK-NEXT: "toy.return"() : () -> () | |
13 # CHECK-NEXT: } | |
14 |