[llvm] [SPIR-V] Map llvm.{min,max}num to GL::N{Min,Max} (PR #88009)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 8 09:25:16 PDT 2024


================
@@ -432,10 +432,10 @@ bool SPIRVInstructionSelector::spvSelect(Register ResVReg,
 
   case TargetOpcode::G_FMINNUM:
   case TargetOpcode::G_FMINIMUM:
-    return selectExtInst(ResVReg, ResType, I, CL::fmin, GL::FMin);
+    return selectExtInst(ResVReg, ResType, I, CL::fmin, GL::NMin);
----------------
farzonl wrote:

I'm a little suprised there were no other tests that needed to be updated than the ones I add.

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


More information about the llvm-commits mailing list