@@ -16,6 +16,8 @@ func.func @emitc_constant() {
16
16
%c8 = " emitc.constant" (){value = dense <0 > : tensor <i32 >} : () -> tensor <i32 >
17
17
%c9 = " emitc.constant" (){value = dense <[0 , 1 ]> : tensor <2 xindex >} : () -> tensor <2 xindex >
18
18
%c10 = " emitc.constant" (){value = dense <[[0.0 , 1.0 ], [2.0 , 3.0 ]]> : tensor <2 x2 xf32 >} : () -> tensor <2 x2 xf32 >
19
+ %c11 = " emitc.constant" (){value = dense <[0 , 1 ]> : !emitc.array <2 xindex >} : () -> !emitc.array <2 xindex >
20
+ %c12 = " emitc.constant" (){value = dense <[0.0 , 1.0 ]> : !emitc.array <2 xf32 >} : () -> !emitc.array <2 xf32 >
19
21
return
20
22
}
21
23
// CPP-DEFAULT: void emitc_constant() {
@@ -33,6 +35,8 @@ func.func @emitc_constant() {
33
35
// CPP-DEFAULT-NEXT: Tensor<int32_t> [[V8:[^ ]*]] = {0};
34
36
// CPP-DEFAULT-NEXT: Tensor<size_t, 2> [[V9:[^ ]*]] = {0, 1};
35
37
// CPP-DEFAULT-NEXT: Tensor<float, 2, 2> [[V10:[^ ]*]] = {0.0e+00f, 1.000000000e+00f, 2.000000000e+00f, 3.000000000e+00f};
38
+ // CPP-DEFAULT-NEXT: size_t [[V11:[^ ]*]][2] = {0, 1};
39
+ // CPP-DEFAULT-NEXT: float [[V12:[^ ]*]][2] = {0.0e+00f, 1.000000000e+00f};
36
40
37
41
// CPP-DECLTOP: void emitc_constant() {
38
42
// CPP-DECLTOP-NEXT: int32_t [[V0:[^ ]*]];
@@ -49,6 +53,8 @@ func.func @emitc_constant() {
49
53
// CPP-DECLTOP-NEXT: Tensor<int32_t> [[V8:[^ ]*]];
50
54
// CPP-DECLTOP-NEXT: Tensor<size_t, 2> [[V9:[^ ]*]];
51
55
// CPP-DECLTOP-NEXT: Tensor<float, 2, 2> [[V10:[^ ]*]];
56
+ // CPP-DECLTOP-NEXT: size_t [[V11:[^ ]*]][2];
57
+ // CPP-DECLTOP-NEXT: float [[V12:[^ ]*]][2];
52
58
// CPP-DECLTOP-NEXT: [[V0]] = INT_MAX;
53
59
// CPP-DECLTOP-NEXT: [[V1]] = 42;
54
60
// CPP-DECLTOP-NEXT: [[V2]] = -1;
@@ -63,3 +69,5 @@ func.func @emitc_constant() {
63
69
// CPP-DECLTOP-NEXT: [[V8]] = {0};
64
70
// CPP-DECLTOP-NEXT: [[V9]] = {0, 1};
65
71
// CPP-DECLTOP-NEXT: [[V10]] = {0.0e+00f, 1.000000000e+00f, 2.000000000e+00f, 3.000000000e+00f};
72
+ // CPP-DECLTOP-NEXT: [[V11]] = {0, 1};
73
+ // CPP-DECLTOP-NEXT: [[V12]] = {0.0e+00f, 1.000000000e+00f};
0 commit comments