CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
110 lines
3.5 KiB
LLVM
110 lines
3.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
|
|
; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel=0 | FileCheck %s --check-prefixes=X86,SDAG-X86
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -global-isel=0 | FileCheck %s --check-prefixes=SDAG-X64
|
|
; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=X86,GISEL-X86
|
|
; RUN: llc < %s -mtriple=x86_64-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=GISEL-X64
|
|
|
|
define float @use_coshf32(float %a) nounwind {
|
|
; SDAG-X86-LABEL: use_coshf32:
|
|
; SDAG-X86: # %bb.0:
|
|
; SDAG-X86-NEXT: subl $12, %esp
|
|
; SDAG-X86-NEXT: flds {{[0-9]+}}(%esp)
|
|
; SDAG-X86-NEXT: fstps (%esp)
|
|
; SDAG-X86-NEXT: calll coshf
|
|
; SDAG-X86-NEXT: addl $12, %esp
|
|
; SDAG-X86-NEXT: retl
|
|
;
|
|
; SDAG-X64-LABEL: use_coshf32:
|
|
; SDAG-X64: # %bb.0:
|
|
; SDAG-X64-NEXT: jmp coshf@PLT # TAILCALL
|
|
;
|
|
; GISEL-X86-LABEL: use_coshf32:
|
|
; GISEL-X86: # %bb.0:
|
|
; GISEL-X86-NEXT: subl $12, %esp
|
|
; GISEL-X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
; GISEL-X86-NEXT: movl %eax, (%esp)
|
|
; GISEL-X86-NEXT: calll coshf
|
|
; GISEL-X86-NEXT: addl $12, %esp
|
|
; GISEL-X86-NEXT: retl
|
|
;
|
|
; GISEL-X64-LABEL: use_coshf32:
|
|
; GISEL-X64: # %bb.0:
|
|
; GISEL-X64-NEXT: pushq %rax
|
|
; GISEL-X64-NEXT: callq coshf
|
|
; GISEL-X64-NEXT: popq %rax
|
|
; GISEL-X64-NEXT: retq
|
|
%x = call float @llvm.cosh.f32(float %a)
|
|
ret float %x
|
|
}
|
|
|
|
define double @use_coshf64(double %a) nounwind {
|
|
; SDAG-X86-LABEL: use_coshf64:
|
|
; SDAG-X86: # %bb.0:
|
|
; SDAG-X86-NEXT: subl $12, %esp
|
|
; SDAG-X86-NEXT: fldl {{[0-9]+}}(%esp)
|
|
; SDAG-X86-NEXT: fstpl (%esp)
|
|
; SDAG-X86-NEXT: calll cosh
|
|
; SDAG-X86-NEXT: addl $12, %esp
|
|
; SDAG-X86-NEXT: retl
|
|
;
|
|
; SDAG-X64-LABEL: use_coshf64:
|
|
; SDAG-X64: # %bb.0:
|
|
; SDAG-X64-NEXT: jmp cosh@PLT # TAILCALL
|
|
;
|
|
; GISEL-X86-LABEL: use_coshf64:
|
|
; GISEL-X86: # %bb.0:
|
|
; GISEL-X86-NEXT: subl $12, %esp
|
|
; GISEL-X86-NEXT: leal {{[0-9]+}}(%esp), %eax
|
|
; GISEL-X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
; GISEL-X86-NEXT: movl 4(%eax), %eax
|
|
; GISEL-X86-NEXT: movl %ecx, (%esp)
|
|
; GISEL-X86-NEXT: movl %eax, {{[0-9]+}}(%esp)
|
|
; GISEL-X86-NEXT: calll cosh
|
|
; GISEL-X86-NEXT: addl $12, %esp
|
|
; GISEL-X86-NEXT: retl
|
|
;
|
|
; GISEL-X64-LABEL: use_coshf64:
|
|
; GISEL-X64: # %bb.0:
|
|
; GISEL-X64-NEXT: pushq %rax
|
|
; GISEL-X64-NEXT: callq cosh
|
|
; GISEL-X64-NEXT: popq %rax
|
|
; GISEL-X64-NEXT: retq
|
|
%x = call double @llvm.cosh.f64(double %a)
|
|
ret double %x
|
|
}
|
|
|
|
define x86_fp80 @use_coshf80(x86_fp80 %a) nounwind {
|
|
; X86-LABEL: use_coshf80:
|
|
; X86: # %bb.0:
|
|
; X86-NEXT: subl $12, %esp
|
|
; X86-NEXT: fldt {{[0-9]+}}(%esp)
|
|
; X86-NEXT: fstpt (%esp)
|
|
; X86-NEXT: calll coshl
|
|
; X86-NEXT: addl $12, %esp
|
|
; X86-NEXT: retl
|
|
;
|
|
; SDAG-X64-LABEL: use_coshf80:
|
|
; SDAG-X64: # %bb.0:
|
|
; SDAG-X64-NEXT: subq $24, %rsp
|
|
; SDAG-X64-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
; SDAG-X64-NEXT: fstpt (%rsp)
|
|
; SDAG-X64-NEXT: callq coshl@PLT
|
|
; SDAG-X64-NEXT: addq $24, %rsp
|
|
; SDAG-X64-NEXT: retq
|
|
;
|
|
; GISEL-X64-LABEL: use_coshf80:
|
|
; GISEL-X64: # %bb.0:
|
|
; GISEL-X64-NEXT: subq $24, %rsp
|
|
; GISEL-X64-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
; GISEL-X64-NEXT: fstpt (%rsp)
|
|
; GISEL-X64-NEXT: callq coshl
|
|
; GISEL-X64-NEXT: addq $24, %rsp
|
|
; GISEL-X64-NEXT: retq
|
|
%x = call x86_fp80 @llvm.cosh.f80(x86_fp80 %a)
|
|
ret x86_fp80 %x
|
|
}
|
|
|
|
declare float @llvm.cosh.f32(float)
|
|
declare double @llvm.cosh.f64(double)
|
|
declare x86_fp80 @llvm.cosh.f80(x86_fp80)
|