llvm-project
ca21fb2c - [SPARC] Keep +0.0 for unsigned i32 to FP conversions on 32-bit SPARC (#247614)

Commit
18 hours ago
[SPARC] Keep +0.0 for unsigned i32 to FP conversions on 32-bit SPARC (#247614) The generic expansion gives -0.0 for 0 when rounding toward negative infinity. This was fixed for 64-bit SPARC in #239907. On 32-bit SPARC, convert the value as signed and add 2^32 if the sign bit is set, in a similar way to how it is done by GCC. Values known to be non-negative are converted as signed directly. Assisted-by: Claude
Author
Parents
Loading