Compiler/F28M36H53B2: Odd behavior of sin function with float vs double

Part Number: F28M36H53B2

Tool/software: TI C/C++ Compiler

Hi,

I came across a odd problem regarding the use of the double sin(double) function from the RTS2800 FPU library. When I use a single precision float as input and output of the function, I sporadically get a +Inf at the output of the function. My input is linearly increasing between 0 and 2*PI. When I use the float sinf(float) function, the problem disappears. I am using  TI v15.12.3.LTS. Any thoughts about this problem?