Skip to content

Commit 3913e5f

Browse files
committed
fix test
1 parent 5e184f0 commit 3913e5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ class FpCastOpConversion : public OpConversionPattern<CastOp> {
743743
LogicalResult
744744
matchAndRewrite(CastOp castOp, typename CastOp::Adaptor adaptor,
745745
ConversionPatternRewriter &rewriter) const override {
746-
// Vectors in particular are not supported
746+
// Vectors in particular are not supported.
747747
Type operandType = adaptor.getIn().getType();
748748
if (!emitc::isSupportedFloatType(operandType))
749749
return rewriter.notifyMatchFailure(castOp,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func.func @arith_truncf(%arg0: f64) -> f32 {
161161
// -----
162162

163163
func.func @arith_extf_f128(%arg0: f32) -> f128 {
164-
// expected-error @+1 {{failed to legalize operation 'arith.truncf'}}
164+
// expected-error @+1 {{failed to legalize operation 'arith.extf'}}
165165
%extd = arith.extf %arg0 : f32 to f128
166166
return %extd : f128
167167
}
@@ -177,7 +177,7 @@ func.func @arith_truncf_f128(%arg0: f128) -> f32 {
177177
// -----
178178

179179
func.func @arith_extf_vector(%arg0: vector<4xf32>) -> vector<4xf64> {
180-
// expected-error @+1 {{failed to legalize operation 'arith.truncf'}}
180+
// expected-error @+1 {{failed to legalize operation 'arith.extf'}}
181181
%extd = arith.extf %arg0 : vector<4xf32> to vector<4xf64>
182182
return %extd : vector<4xf64>
183183
}

0 commit comments

Comments
 (0)