@@ -106,4 +106,40 @@ func.func @tile_f16_many_dimensions() -> (tensor<6x2x2xf16>) {
106
106
%1 = tosa.tile %0 {multiples = array<i64 : 3 , 2 , 1 >} : (tensor <3 x1 x1 xf16 >) -> tensor <6 x2 x2 xf16 >
107
107
// NO-FOLDING-CHECK: tosa.tile
108
108
return %1 : tensor <6 x2 x2 xf16 >
109
+ }
110
+
111
+ // CHECK-LABEL: @tile_i1_splat
112
+ func.func @tile_i1_splat () -> (tensor <1 x2 x2 x2 xi1 >) {
113
+ // CHECK: "tosa.const"() <{value = dense<false> : tensor<1x2x2x2xi1>}>
114
+ %0 = " tosa.const" () <{value = dense <false > : tensor <1 x1 x1 x1 xi1 >}> : () -> tensor <1 x1 x1 x1 xi1 >
115
+ %1 = tosa.tile %0 {multiples = array<i64 : 1 , 2 , 2 , 2 >} : (tensor <1 x1 x1 x1 xi1 >) -> tensor <1 x2 x2 x2 xi1 >
116
+ // NO-FOLDING-CHECK: tosa.tile
117
+ return %1 : tensor <1 x2 x2 x2 xi1 >
118
+ }
119
+
120
+ // CHECK-LABEL: @tile_i32_splat
121
+ func.func @tile_i32_splat () -> (tensor <1 x2 x2 x2 xi32 >) {
122
+ // CHECK: "tosa.const"() <{value = dense<2> : tensor<1x2x2x2xi32>}>
123
+ %0 = " tosa.const" () <{value = dense <2 > : tensor <1 x1 x1 x1 xi32 >}> : () -> tensor <1 x1 x1 x1 xi32 >
124
+ %1 = tosa.tile %0 {multiples = array<i64 : 1 , 2 , 2 , 2 >} : (tensor <1 x1 x1 x1 xi32 >) -> tensor <1 x2 x2 x2 xi32 >
125
+ // NO-FOLDING-CHECK: tosa.tile
126
+ return %1 : tensor <1 x2 x2 x2 xi32 >
127
+ }
128
+
129
+ // CHECK-LABEL: @tile_f16_splat
130
+ func.func @tile_f16_splat () -> (tensor <1 x2 x2 x2 xf16 >) {
131
+ // CHECK: "tosa.const"() <{value = dense<1.000000e+00> : tensor<1x2x2x2xf16>}>
132
+ %0 = " tosa.const" () <{value = dense <1.000000e+00 > : tensor <1 x1 x1 x1 xf16 >}> : () -> tensor <1 x1 x1 x1 xf16 >
133
+ %1 = tosa.tile %0 {multiples = array<i64 : 1 , 2 , 2 , 2 >} : (tensor <1 x1 x1 x1 xf16 >) -> tensor <1 x2 x2 x2 xf16 >
134
+ // NO-FOLDING-CHECK: tosa.tile
135
+ return %1 : tensor <1 x2 x2 x2 xf16 >
136
+ }
137
+
138
+ // CHECK-LABEL: @tile_bf16_splat
139
+ func.func @tile_bf16_splat () -> (tensor <1 x2 x2 x2 xbf16 >) {
140
+ // CHECK: "tosa.const"() <{value = dense<1.000000e+00> : tensor<1x2x2x2xbf16>}>
141
+ %0 = " tosa.const" () <{value = dense <1.000000e+00 > : tensor <1 x1 x1 x1 xbf16 >}> : () -> tensor <1 x1 x1 x1 xbf16 >
142
+ %1 = tosa.tile %0 {multiples = array<i64 : 1 , 2 , 2 , 2 >} : (tensor <1 x1 x1 x1 xbf16 >) -> tensor <1 x2 x2 x2 xbf16 >
143
+ // NO-FOLDING-CHECK: tosa.tile
144
+ return %1 : tensor <1 x2 x2 x2 xbf16 >
109
145
}
0 commit comments