File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/Conversion/ArithToEmitC
test/Conversion/ArithToEmitC Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ func.func @arith_truncf(%arg0: f64) -> f32 {
161161// -----
162162
163163func.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
179179func.func @arith_extf_vector (%arg0: vector <4 xf32 >) -> vector <4 xf64 > {
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 <4 xf32 > to vector <4 xf64 >
182182 return %extd : vector <4 xf64 >
183183}
You can’t perform that action at this time.
0 commit comments