llvm-project/flang/test/Lower/intrinsic-procedure-wrappers.f90
David Truby f52c64b115 [flang] Add fastmath flags to localBuilder in IntrinsicCall
Currently the local builder used in IntrinsicCall doesn't have the
fastmath flags passed to it. This results in the fastmath attribute
not being added to certain runtime calls. This patch simply forwards
the fastmath flags from the parent builder.

Differential Revision: https://reviews.llvm.org/D154611
2023-07-11 18:53:31 +01:00

11 lines
322 B
Fortran

! RUN: bbc -outline-intrinsics %s -o - | tco --disable-llvm --mlir-print-ir-after=fir-to-llvm-ir 2>&1 | FileCheck %s
! Test properties of intrinsic function wrappers
! Test that intrinsic wrappers have internal linkage
function foo(x)
foo = acos(x)
end function
! CHECK: llvm.func internal @fir.acos.contract.f32.f32