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
)
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
)
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
)
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
)
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
)
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
)
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