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
66 lines
1.8 KiB
LLVM
66 lines
1.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc < %s -mtriple=aarch64-- | FileCheck %s
|
|
; RUN: llc -mtriple=aarch64-windows-pc-msvc < %s | FileCheck -check-prefix=WINDOWS %s
|
|
|
|
declare double @llvm.powi.f64.i32(double, i32)
|
|
declare float @llvm.powi.f32.i32(float, i32)
|
|
declare float @pow(double noundef, double noundef)
|
|
|
|
define float @powi_f32_4(float %x) nounwind {
|
|
; CHECK-LABEL: powi_f32_4:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmul s0, s0, s0
|
|
; CHECK-NEXT: fmul s0, s0, s0
|
|
; CHECK-NEXT: ret
|
|
;
|
|
; WINDOWS-LABEL: powi_f32_4:
|
|
; WINDOWS: // %bb.0:
|
|
; WINDOWS-NEXT: fmul s0, s0, s0
|
|
; WINDOWS-NEXT: fmul s0, s0, s0
|
|
; WINDOWS-NEXT: ret
|
|
%1 = tail call float @llvm.powi.f32.i32(float %x, i32 4)
|
|
ret float %1
|
|
}
|
|
|
|
define double @powi_f64_3(double %x) nounwind {
|
|
; CHECK-LABEL: powi_f64_3:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: fmul d1, d0, d0
|
|
; CHECK-NEXT: fmul d0, d0, d1
|
|
; CHECK-NEXT: ret
|
|
;
|
|
; WINDOWS-LABEL: powi_f64_3:
|
|
; WINDOWS: // %bb.0:
|
|
; WINDOWS-NEXT: fmul d1, d0, d0
|
|
; WINDOWS-NEXT: fmul d0, d0, d1
|
|
; WINDOWS-NEXT: ret
|
|
%1 = tail call double @llvm.powi.f64.i32(double %x, i32 3)
|
|
ret double %1
|
|
}
|
|
|
|
define float @powi_f32(float %x, i32 %n) nounwind {
|
|
; CHECK-LABEL: powi_f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: b __powisf2
|
|
;
|
|
; WINDOWS-LABEL: powi_f32:
|
|
; WINDOWS: // %bb.0:
|
|
; WINDOWS-NEXT: scvtf s1, w0
|
|
; WINDOWS-NEXT: b powf
|
|
%ret = tail call float @llvm.powi.f32.i32(float %x, i32 %n)
|
|
ret float %ret
|
|
}
|
|
|
|
define double @powi_f64(double %x, i32 %n) nounwind {
|
|
; CHECK-LABEL: powi_f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: b __powidf2
|
|
;
|
|
; WINDOWS-LABEL: powi_f64:
|
|
; WINDOWS: // %bb.0:
|
|
; WINDOWS-NEXT: scvtf d1, w0
|
|
; WINDOWS-NEXT: b pow
|
|
%ret = tail call double @llvm.powi.f64.i32(double %x, i32 %n)
|
|
ret double %ret
|
|
}
|