[Mlir-commits] [mlir] [MLIR][EmitC] arith-to-emitc: Fix lowering of fptoui (PR #118504)

Corentin Ferry llvmlistbot at llvm.org
Wed Dec 4 02:51:54 PST 2024


================
@@ -674,7 +674,7 @@ class FtoICastOpConversion : public OpConversionPattern<CastOp> {
     Type actualResultType = dstType;
----------------
cferry-AMD wrote:

Isn't `dstType` signless? If I'm not mistaking, this condition is there so that the first cast actually goes to unsigned no matter what the signedness of `dstType` is.

https://github.com/llvm/llvm-project/pull/118504


More information about the Mlir-commits mailing list