AnsweredAssumed Answered

Missing S12Z compiler intrinsics for max/min

Question asked by Edward Karpicz on Apr 30, 2020
Latest reply on May 6, 2020 by ZhangJennie



S12Z compiler intrinsic functions are useful to optimize code without switching to assembler. But why __minu() / __mins() / __maxu() / __maxs() are missing? Optimizer seems being unable to replace something very common like this

   if(x > max) x = max;

with MINU, and time expensive conditional branch is used instead. Any plans to implement these min/max intrinsics and perhaps improve optimizer?