xref: /llvm-project/flang/test/Lower/Intrinsics/rrspacing.f90 (revision f35f863a88f83332bef9605ef4cfe4f05c066efb)
1! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
3
4! CHECK-LABEL: func @_QPrrspacing_test2(
5! CHECK-SAME: %[[x:[^:]+]]: !fir.ref<f128>{{.*}}) -> f128
6real*16 function rrspacing_test2(x)
7  real*16 :: x
8  rrspacing_test2 = rrspacing(x)
9! CHECK: %[[a1:.*]] = fir.load %[[x]] : !fir.ref<f128>
10! CHECK: %{{.*}} = fir.call @_FortranARRSpacing16(%[[a1]]) {{.*}}: (f128) -> f128
11end function
12