Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AArch64/svtcf-fmul-fdiv-combine.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

168 lines
4.0 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; RUN: llc -mtriple aarch64-none-linux-gnu -mattr=+fullfp16 < %s | FileCheck %s
define half @scvtf_f16_2(i32 %state) {
; CHECK-LABEL: scvtf_f16_2:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf h0, w0, #1
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to half
%div = fmul half %conv, 5.000000e-01
ret half %div
}
define half @scvtf_f16_4(i32 %state) {
; CHECK-LABEL: scvtf_f16_4:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf h0, w0, #2
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to half
%div = fmul half %conv, 2.500000e-01
ret half %div
}
define half @scvtf_f16_8(i32 %state) {
; CHECK-LABEL: scvtf_f16_8:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf h0, w0, #3
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to half
%div = fmul half %conv, 1.250000e-01
ret half %div
}
define half @scvtf_f16_16(i32 %state) {
; CHECK-LABEL: scvtf_f16_16:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf h0, w0, #4
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to half
%div = fmul half %conv, 6.250000e-02
ret half %div
}
define half @scvtf_f16_32(i32 %state) {
; CHECK-LABEL: scvtf_f16_32:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf h0, w0, #5
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to half
%div = fmul half %conv, 3.125000e-02
ret half %div
}
define float @scvtf_f32_2(i32 %state) {
; CHECK-LABEL: scvtf_f32_2:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf s0, w0, #1
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to float
%div = fmul float %conv, 5.000000e-01
ret float %div
}
define float @scvtf_f32_4(i32 %state) {
; CHECK-LABEL: scvtf_f32_4:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf s0, w0, #2
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to float
%div = fmul float %conv, 2.500000e-01
ret float %div
}
define float @scvtf_f32_8(i32 %state) {
; CHECK-LABEL: scvtf_f32_8:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf s0, w0, #3
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to float
%div = fmul float %conv, 1.250000e-01
ret float %div
}
define float @scvtf_f32_16(i32 %state) {
; CHECK-LABEL: scvtf_f32_16:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf s0, w0, #4
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to float
%div = fmul float %conv, 6.250000e-02
ret float %div
}
define float @scvtf_f32_32(i32 %state) {
; CHECK-LABEL: scvtf_f32_32:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf s0, w0, #5
; CHECK-NEXT: ret
entry:
%conv = sitofp i32 %state to float
%div = fmul float %conv, 3.125000e-02
ret float %div
}
define double @scvtf_f64_2(i64 %state) {
; CHECK-LABEL: scvtf_f64_2:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf d0, x0, #1
; CHECK-NEXT: ret
entry:
%conv = sitofp i64 %state to double
%div = fmul double %conv, 5.000000e-01
ret double %div
}
define double @scvtf_f64_4(i64 %state) {
; CHECK-LABEL: scvtf_f64_4:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf d0, x0, #2
; CHECK-NEXT: ret
entry:
%conv = sitofp i64 %state to double
%div = fmul double %conv, 2.500000e-01
ret double %div
}
define double @scvtf_f64_8(i64 %state) {
; CHECK-LABEL: scvtf_f64_8:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf d0, x0, #3
; CHECK-NEXT: ret
entry:
%conv = sitofp i64 %state to double
%div = fmul double %conv, 1.250000e-01
ret double %div
}
define double @scvtf_f64_16(i64 %state) {
; CHECK-LABEL: scvtf_f64_16:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf d0, x0, #4
; CHECK-NEXT: ret
entry:
%conv = sitofp i64 %state to double
%div = fmul double %conv, 6.250000e-02
ret double %div
}
define double @scvtf_f64_32(i64 %state) {
; CHECK-LABEL: scvtf_f64_32:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: scvtf d0, x0, #5
; CHECK-NEXT: ret
entry:
%conv = sitofp i64 %state to double
%div = fmul double %conv, 3.125000e-02
ret double %div
}