mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 18:46:40 +00:00

This does a global rename from `flang-new` to `flang`. I also removed/changed any TODOs that I found related to making this change. --------- Co-authored-by: H. Vetinari <h.vetinari@gmx.com> Co-authored-by: Andrzej Warzynski <andrzej.warzynski@arm.com>
59 lines
1.9 KiB
Fortran
59 lines
1.9 KiB
Fortran
! RUN: bbc -emit-fir %s -o - | FileCheck %s
|
|
! RUN: flang -fc1 -emit-fir %s -o - | FileCheck %s
|
|
|
|
! CHECK-LABEL: ieee_is_normal_f16
|
|
subroutine ieee_is_normal_f16(r)
|
|
use ieee_arithmetic
|
|
real(KIND=2) :: r
|
|
i = ieee_is_normal(r)
|
|
! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f16) -> i1
|
|
! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
|
|
end subroutine ieee_is_normal_f16
|
|
|
|
! CHECK-LABEL: ieee_is_normal_bf16
|
|
subroutine ieee_is_normal_bf16(r)
|
|
use ieee_arithmetic
|
|
real(KIND=3) :: r
|
|
i = ieee_is_normal(r)
|
|
! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (bf16) -> i1
|
|
! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
|
|
end subroutine ieee_is_normal_bf16
|
|
|
|
|
|
|
|
! CHECK-LABEL: ieee_is_normal_f32
|
|
subroutine ieee_is_normal_f32(r)
|
|
use ieee_arithmetic
|
|
real :: r
|
|
i = ieee_is_normal(r)
|
|
! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f32) -> i1
|
|
! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
|
|
end subroutine ieee_is_normal_f32
|
|
|
|
! CHECK-LABEL: ieee_is_normal_f64
|
|
subroutine ieee_is_normal_f64(r)
|
|
use ieee_arithmetic
|
|
real(KIND=8) :: r
|
|
i = ieee_is_normal(r)
|
|
! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f64) -> i1
|
|
! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
|
|
end subroutine ieee_is_normal_f64
|
|
|
|
! CHECK-LABEL: ieee_is_normal_f80
|
|
subroutine ieee_is_normal_f80(r)
|
|
use ieee_arithmetic
|
|
real(KIND=10) :: r
|
|
i = ieee_is_normal(r)
|
|
! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f80) -> i1
|
|
! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
|
|
end subroutine ieee_is_normal_f80
|
|
|
|
! CHECK-LABEL: ieee_is_normal_f128
|
|
subroutine ieee_is_normal_f128(r)
|
|
use ieee_arithmetic
|
|
real(KIND=16) :: r
|
|
i = ieee_is_normal(r)
|
|
! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f128) -> i1
|
|
! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
|
|
end subroutine ieee_is_normal_f128
|