[PATCH] D36893: [AArch64] Custom lowering of copysign f16

Oliver Stannard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 02:24:17 PDT 2017


olista01 added inline comments.


================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:4082
+  if (SrcVT.bitsLT(VT) &&
+      !(In2.getValueType() == MVT::f16 && Subtarget->hasFullFP16()))
     In2 = DAG.getNode(ISD::FP_EXTEND, DL, VT, In2);
----------------
Why does this need a special case for f16?


================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:4116
+    setVecVal(AArch64::dsub);
+  } else if (VT == MVT::f16) {
+    EltMask = 0x8000ULL;
----------------
We could also do this for v4f16 and v8f16.


https://reviews.llvm.org/D36893





More information about the llvm-commits mailing list