[clang] [llvm] [SystemZ] Support fp16 vector ABI and basic codegen. (PR #171066)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 26 04:58:43 PST 2026


================
@@ -6597,7 +6659,7 @@ static SDValue convertFromF16(SDValue Op, SDLoc DL, SelectionDAG &DAG) {
   SDValue BCast = DAG.getNode(ISD::BITCAST, DL, MVT::i64, In64);
   SDValue Shft = DAG.getNode(ISD::SRL, DL, MVT::i64, BCast,
                              DAG.getConstant(48, DL, MVT::i32));
-  return Shft;
+  return DAG.getZExtOrTrunc(Shft, DL, MVT::i32);
----------------
uweigand wrote:

I think it would be preferable to do this in the caller, to keep the interfaces of `convertToFp16` and `convertFromFp16` symmetrical.

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


More information about the llvm-commits mailing list