| Issue |
76889
|
| Summary |
Exponentiation by (1.0,0.0) of COMPLEX is not identity.
|
| Labels |
flang
|
| Assignees |
|
| Reporter |
harishch4
|
Complex exponentiation by real/complex 1.0 is not the identity.
GNU compiler & classic-flang perturbs the argument. Intel compiler does not. : https://godbolt.org/z/xTo9K1ceE
```
Program test_complex_expt
Complex :: x(3),y(3),xpt(3)
Real :: rpt(3)
x(:) = (1234.0, 2345.0)
xpt = [ 1, 2, 0]
y = x ** xpt
Print *,y(1)-x(1)
rpt = [ 1, 2, 0]
y = x ** rpt
Print *,y(1)-x(1)
End Program test_complex_expt
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs