llvm-project
18 строк · 664.0 Байт
1// RUN: mlir-opt %s | mlir-opt | FileCheck %s
2
3// CHECK: test.array_of_attr_op
4test.array_of_attr_op
5// CHECK-SAME: a = [ begin 0 : index end, begin 2 : index end ]
6a = [begin 0 : index end, begin 2 : index end],
7// CHECK-SAME: [0, 1, -42, 42]
8b = [0, 1, -42, 42],
9// CHECK-SAME: [a, b, b, a]
10c = [a, b, b, a]
11
12// CHECK: test.array_of_attr_op
13// CHECK-SAME: a = [], b = [], c = []
14test.array_of_attr_op a = [], b = [], c = []
15
16// CHECK: "test.test_array_float"
17// CHECK-SAME: 1.000000e+00 : f32, 1.000000e+00, 0x7FF0000000000000 : f64
18"test.test_array_float"() {test.float_arr = [1.0 : f32, 1.0 : f64, 0x7FF0000000000000 : f64]} : () -> ()
19