This patch changes the handling of complex number intrinsics that have C libm equivalents to call into those instead of calling the external pgmath library. Currently complex numbers to integer powers are excluded as libm has no powi equivalent function. Differential Revision: https://reviews.llvm.org/D134655
11 lines
299 B
Fortran
11 lines
299 B
Fortran
! There is no quad math runtime available in lowering
|
|
! for now. Test that the TODO are emitted correctly.
|
|
! RUN: bbc -emit-fir %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
complex(16) :: a
|
|
real(16) :: b
|
|
! CHECK: not yet implemented: no math runtime available for 'abs(!fir.complex<16>)'
|
|
b = abs(a)
|
|
end
|
|
|