================ @@ -1034,6 +1034,10 @@ Value *CodeGenFunction::EmitNVPTXBuiltinExpr(unsigned BuiltinID, case NVPTX::BI__nvvm_fmin_xorsign_abs_f16x2: return MakeHalfType(Intrinsic::nvvm_fmin_xorsign_abs_f16x2, BuiltinID, E, *this); + case NVPTX::BI__nvvm_abs_bf16: + case NVPTX::BI__nvvm_abs_bf16x2: + return Builder.CreateUnaryIntrinsic(Intrinsic::nvvm_fabs, ---------------- AlexMaclean wrote:
You are correct, I needed to add logic for all floating point absolute value cases. I've done so and added corresponding tests. I don't see an obvious way to support a table-gen-generated builtin with an overloadable intrinsic. If there were that would be nice. https://github.com/llvm/llvm-project/pull/135644 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits