Files
clang-p2996/flang/test/Lower/Intrinsics/missing-math-runtime.f90
David Truby 8bd54409b1 [flang] Use libm over pgmath for complex number intrinsics
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
2022-09-28 13:25:10 +00:00

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