================ @@ -1382,14 +1382,15 @@ void Intrinsic::emitBodyAsBuiltinCall() { Type CastToType = T; // Check if an explicit cast is needed. - if (CastToType.isVector() && - (LocalCK == ClassB || (T.isHalf() && !T.isScalarForMangling()))) { - CastToType.makeInteger(8, true); - Arg = "(" + CastToType.str() + ")" + Arg; - } else if (CastToType.isVector() && LocalCK == ClassI) { - if (CastToType.isInteger()) - CastToType.makeSigned(); - Arg = "(" + CastToType.str() + ")" + Arg; + if (CastToType.isVector()) { ---------------- momchil-velikov wrote:
It's an omission. Also the return value cast, it's either redundant or needs to be a bitcast too. Will fix. https://github.com/llvm/llvm-project/pull/121802 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits