Issue 160538
Summary [flang] `SELECTED_REAL_KIND` has unexpected result for PPC (both LoP and AIX)
Labels flang:frontend
Assignees DanielCChen
Reporter DanielCChen
    Consider the following code:
```
print*, SELECTED_REAL_KIND(30, 36)
print*, SELECTED_REAL_KIND(30, 291)
print*, SELECTED_REAL_KIND(30, 300)
print*, SELECTED_REAL_KIND(30, 999)
print*, SELECTED_REAL_KIND(16, 300)
print*, SELECTED_REAL_KIND(17, 300, 2)
end
```

These are a few instances that the result of the intrinsic are not expected.

Flang outputs
```
> a.out
 -1
 -1
 -1
 -3
 -1
 -1
```

Expected output 
```
> a.out
 16
 16
 -4
 -2
 -4
 -4
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to