| Issue |
233675
|
| Summary |
llubi compares a subnormal input as nonzero in the positivezero input mode
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Roticv912
|
With denormal_fpenv(ieee|positivezero), this program returns 0 instead of the expected 1 when comparing a subnormal float with zero.
### Program
```
define i32 @main() denormal_fpenv(ieee|positivezero) {
%x = bitcast i32 1 to float
%c = fcmp oeq float %x, 0.0
%r = zext i1 %c to i32
ret i32 %r
}
```
### Output
```
Entering function: main
%x = bitcast i32 1 to float => float 1.401300e-45
%c = fcmp oeq float %x, 0.000000e+00 => F
%r = zext i1 %c to i32 => i32 0
ret i32 %r
Exiting function: main
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs