1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
4 define half @use_coshf16(half %a) nounwind {
5 ; CHECK-LABEL: use_coshf16:
7 ; CHECK-NEXT: pushq %rax
8 ; CHECK-NEXT: callq __extendhfsf2@PLT
9 ; CHECK-NEXT: callq coshf@PLT
10 ; CHECK-NEXT: callq __truncsfhf2@PLT
11 ; CHECK-NEXT: popq %rax
13 %x = call half @llvm.cosh.f16(half %a)
17 define float @use_coshf32(float %a) nounwind {
18 ; CHECK-LABEL: use_coshf32:
20 ; CHECK-NEXT: jmp coshf@PLT # TAILCALL
21 %x = call float @llvm.cosh.f32(float %a)
25 define double @use_coshf64(double %a) nounwind {
26 ; CHECK-LABEL: use_coshf64:
28 ; CHECK-NEXT: jmp cosh@PLT # TAILCALL
29 %x = call double @llvm.cosh.f64(double %a)
33 define x86_fp80 @use_coshf80(x86_fp80 %a) nounwind {
34 ; CHECK-LABEL: use_coshf80:
36 ; CHECK-NEXT: subq $24, %rsp
37 ; CHECK-NEXT: fldt 32(%rsp)
38 ; CHECK-NEXT: fstpt (%rsp)
39 ; CHECK-NEXT: callq coshl@PLT
40 ; CHECK-NEXT: addq $24, %rsp
42 %x = call x86_fp80 @llvm.cosh.f80(x86_fp80 %a)
46 define fp128 @use_coshfp128(fp128 %a) nounwind {
47 ; CHECK-LABEL: use_coshfp128:
49 ; CHECK-NEXT: jmp coshf128@PLT # TAILCALL
50 %x = call fp128 @llvm.cosh.f128(fp128 %a)
54 define ppc_fp128 @use_coshppc_fp128(ppc_fp128 %a) nounwind {
55 ; CHECK-LABEL: use_coshppc_fp128:
57 ; CHECK-NEXT: pushq %rax
58 ; CHECK-NEXT: callq coshl@PLT
59 ; CHECK-NEXT: popq %rax
61 %x = call ppc_fp128 @llvm.cosh.ppcf128(ppc_fp128 %a)
65 declare half @llvm.cosh.f16(half)
66 declare float @llvm.cosh.f32(float)
67 declare double @llvm.cosh.f64(double)
68 declare x86_fp80 @llvm.cosh.f80(x86_fp80)
69 declare fp128 @llvm.cosh.f128(fp128)
70 declare ppc_fp128 @llvm.cosh.ppcf128(ppc_fp128)