[llvm] [PowerPC] Implement llvm.set.rounding intrinsic (PR #67302)

Justin Hibbits via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 06:25:12 PDT 2023


================
@@ -426,6 +426,7 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
     setLoadExtAction(ISD::EXTLOAD, MVT::f64, MVT::f32, Expand);
 
   setOperationAction(ISD::GET_ROUNDING, MVT::i32, Custom);
+  setOperationAction(ISD::SET_ROUNDING, MVT::Other, Custom);
----------------
chmeeedalf wrote:

This won't work for SPE, since SPE doesn't have standard floating point registers.  The equivalent is a move to the SPEFSCR SPR.

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


More information about the llvm-commits mailing list