Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE
Tool/software: TI C/C++ Compiler
So, i do know we used to advise customers to do the following 
But i have noticed that this is no longer true, I am unable to generate this optimized code.
I am using compiler version 18.1.3.LTS , I tested this with the example in C2000Ware, by just adding the following in the code...
volatile float val1=0.2;
volatile float val2=0.5;
volatile float val3=0.5;
val1=(val1>val2)?val2:val1;
but i cannot get the assembler to generate the min and the max instructions for me, i have optimizations turned on at level 2 and level 3,
Can you advise, if the above still is true? and second what is the necessary and sufficient condition to make use of this.