1! RUN: bbc -emit-fir --math-runtime=fast -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,FAST" 2! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=fast -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,FAST" 3! RUN: bbc -emit-fir --math-runtime=relaxed -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,RELAXED" 4! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=relaxed -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,RELAXED" 5! RUN: bbc -emit-fir --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,PRECISE" 6! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=precise -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,PRECISE" 7! RUN: bbc -emit-fir --math-runtime=llvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,LLVM" 8! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=llvm -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="FIR,LLVM" 9 10! CHECK-LABEL: cos_testr 11subroutine cos_testr(a, b) 12 real :: a, b 13! FIR: fir.call @fir.cos.f32.f32 14 b = cos(a) 15end subroutine 16 17! CHECK-LABEL: cos_testd 18subroutine cos_testd(a, b) 19 real(kind=8) :: a, b 20! FIR: fir.call @fir.cos.f64.f64 21 b = cos(a) 22end subroutine 23 24! FIR: @fir.cos.f32.f32(%arg0: f32) -> f32 attributes 25! FAST: fir.call @__fs_cos_1(%arg0) : (f32) -> f32 26! RELAXED: fir.call @__rs_cos_1(%arg0) : (f32) -> f32 27! PRECISE: fir.call @__ps_cos_1(%arg0) : (f32) -> f32 28! LLVM: fir.call @llvm.cos.f32(%arg0) : (f32) -> f32 29! FIR: @fir.cos.f64.f64(%arg0: f64) -> f64 30! FAST: fir.call @__fd_cos_1(%arg0) : (f64) -> f64 31! RELAXED: fir.call @__rd_cos_1(%arg0) : (f64) -> f64 32! PRECISE: fir.call @__pd_cos_1(%arg0) : (f64) -> f64 33! LLVM: fir.call @llvm.cos.f64(%arg0) : (f64) -> f64 34