Skip to content

Commit 9a3518c

Browse files
committed
Fix test
1 parent b41769b commit 9a3518c

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

mlir/test/Conversion/ArithToEmitC/arith-to-emitc-unsupported.mlir

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,6 @@ func.func @arith_remui_vector(%arg0: vector<5xi32>, %arg1: vector<5xi32>) -> vec
134134
return %divui: vector<5xi32>
135135
}
136136

137-
// -----
138-
139-
func.func @arith_extf_to_bf16(%arg0: f8E4M3FN) {
140-
// expected-error @+1 {{failed to legalize operation 'arith.extf'}}
141-
%ext = arith.extf %arg0 : f8E4M3FN to bf16
142-
return
143-
}
144-
145-
// -----
146-
147-
func.func @arith_extf_to_f16(%arg0: f8E4M3FN) {
148-
// expected-error @+1 {{failed to legalize operation 'arith.extf'}}
149-
%ext = arith.extf %arg0 : f8E4M3FN to f16
150-
return
151-
}
152-
153-
154137
// -----
155138

156139
func.func @arith_extf_to_tf32(%arg0: f8E4M3FN) {
@@ -193,22 +176,6 @@ func.func @arith_truncf_to_tf32(%arg0: f64) {
193176

194177
// -----
195178

196-
func.func @arith_truncf_to_f16(%arg0: f64) {
197-
// expected-error @+1 {{failed to legalize operation 'arith.truncf'}}
198-
%trunc = arith.truncf %arg0 : f64 to f16
199-
return
200-
}
201-
202-
// -----
203-
204-
func.func @arith_truncf_to_bf16(%arg0: f64) {
205-
// expected-error @+1 {{failed to legalize operation 'arith.truncf'}}
206-
%trunc = arith.truncf %arg0 : f64 to bf16
207-
return
208-
}
209-
210-
// -----
211-
212179
func.func @arith_truncf_to_f8E4M3FN(%arg0: f64) {
213180
// expected-error @+1 {{failed to legalize operation 'arith.truncf'}}
214181
%trunc = arith.truncf %arg0 : f64 to f8E4M3FN

mlir/test/Dialect/EmitC/invalid_types.mlir

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,6 @@ func.func @illegal_f8E5M2FNUZ_type(%arg0: f8E5M2FNUZ, %arg1: f8E5M2FNUZ) {
132132

133133
// -----
134134

135-
func.func @illegal_f16_type(%arg0: f16, %arg1: f16) {
136-
// expected-error @+1 {{'emitc.mul' op operand #0 must be floating-point type supported by EmitC or integer, index or opaque type supported by EmitC, but got 'f16'}}
137-
%mul = "emitc.mul" (%arg0, %arg1) : (f16, f16) -> f16
138-
return
139-
}
140-
141-
// -----
142-
143-
func.func @illegal_bf16_type(%arg0: bf16, %arg1: bf16) {
144-
// expected-error @+1 {{'emitc.mul' op operand #0 must be floating-point type supported by EmitC or integer, index or opaque type supported by EmitC, but got 'bf16'}}
145-
%mul = "emitc.mul" (%arg0, %arg1) : (bf16, bf16) -> bf16
146-
return
147-
}
148-
149-
// -----
150-
151135
func.func @illegal_f80_type(%arg0: f80, %arg1: f80) {
152136
// expected-error @+1 {{'emitc.mul' op operand #0 must be floating-point type supported by EmitC or integer, index or opaque type supported by EmitC, but got 'f80'}}
153137
%mul = "emitc.mul" (%arg0, %arg1) : (f80, f80) -> f80

0 commit comments

Comments
 (0)