| 1 |
! REQUIRES: flang-supports-f128-math |
| 2 |
! RUN: bbc -emit-fir %s -o - | FileCheck %s |
| 3 |
! RUN: bbc --math-runtime=precise -emit-fir %s -o - | FileCheck %s |
| 4 |
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s |
| 5 |
|
| 6 |
function test_real16(x) |
| 7 |
real(16) :: x, test_real16 |
| 8 |
test_real16 = atan(x) |
| 9 |
end function |
| 10 |
|
| 11 |
! CHECK-LABEL: @_QPtest_real16 |
| 12 |
! CHECK: fir.call @_FortranAAtanF128({{.*}}){{.*}}: (f128) -> f128 |
| 13 |
|
| 14 |
function test_real16_2(y, x) |
| 15 |
real(16) :: y, x, test_real16_2 |
| 16 |
test_real16_2 = atan(y, x) |
| 17 |
end function |
| 18 |
|
| 19 |
! CHECK-LABEL: @_QPtest_real16_2 |
| 20 |
! CHECK: fir.call @_FortranAAtan2F128({{.*}}){{.*}}: (f128, f128) -> f128 |