[libc-commits] [libc] [llvm] [LoongArch] Support ISD::SET_ROUNDING (llvm.set.rounding) (PR #205051)

Zhaoxin Yang via libc-commits libc-commits at lists.llvm.org
Mon Jun 22 05:44:03 PDT 2026


================
@@ -125,6 +125,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
   setOperationAction(ISD::VASTART, MVT::Other, Custom);
   setOperationAction({ISD::VAARG, ISD::VACOPY, ISD::VAEND}, MVT::Other, Expand);
 
+  setOperationAction(ISD::SET_ROUNDING, MVT::Other, Custom);
----------------
ylzsx wrote:

Perhaps moving it inside `Subtarget.hasBasicF()` would be a better choice.

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


More information about the libc-commits mailing list