[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / flang / test / Lower / Intrinsics / ieee_is_normal.f90
blob9b864c9a9849c3550c2096cab7e784941b2dc851
1 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
2 ! RUN: flang -fc1 -emit-fir %s -o - | FileCheck %s
4 ! CHECK-LABEL: ieee_is_normal_f16
5 subroutine ieee_is_normal_f16(r)
6 use ieee_arithmetic
7 real(KIND=2) :: r
8 i = ieee_is_normal(r)
9 ! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f16) -> i1
10 ! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
11 end subroutine ieee_is_normal_f16
13 ! CHECK-LABEL: ieee_is_normal_bf16
14 subroutine ieee_is_normal_bf16(r)
15 use ieee_arithmetic
16 real(KIND=3) :: r
17 i = ieee_is_normal(r)
18 ! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (bf16) -> i1
19 ! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
20 end subroutine ieee_is_normal_bf16
24 ! CHECK-LABEL: ieee_is_normal_f32
25 subroutine ieee_is_normal_f32(r)
26 use ieee_arithmetic
27 real :: r
28 i = ieee_is_normal(r)
29 ! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f32) -> i1
30 ! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
31 end subroutine ieee_is_normal_f32
33 ! CHECK-LABEL: ieee_is_normal_f64
34 subroutine ieee_is_normal_f64(r)
35 use ieee_arithmetic
36 real(KIND=8) :: r
37 i = ieee_is_normal(r)
38 ! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f64) -> i1
39 ! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
40 end subroutine ieee_is_normal_f64
42 ! CHECK-LABEL: ieee_is_normal_f80
43 subroutine ieee_is_normal_f80(r)
44 use ieee_arithmetic
45 real(KIND=10) :: r
46 i = ieee_is_normal(r)
47 ! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f80) -> i1
48 ! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
49 end subroutine ieee_is_normal_f80
51 ! CHECK-LABEL: ieee_is_normal_f128
52 subroutine ieee_is_normal_f128(r)
53 use ieee_arithmetic
54 real(KIND=16) :: r
55 i = ieee_is_normal(r)
56 ! CHECK: %[[l:.*]] = "llvm.intr.is.fpclass"(%{{.*}}) <{bit = 360 : i32}> : (f128) -> i1
57 ! CHECK: fir.convert %[[l]] : (i1) -> !fir.logical<4>
58 end subroutine ieee_is_normal_f128