32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=arm64ec-windows-msvc < %s | FileCheck -check-prefix=ARM64EC %s3 4declare half @llvm.powi.f16.i32(half, i32)5declare float @llvm.powi.f32.i32(float, i32)6declare double @llvm.powi.f64.i32(double, i32)7 8; ARM64EC-LABEL: powi_f169; ARM64EC: fcvt s0, h010; ARM64EC: scvtf s1, w011; ARM64EC: bl "#powf"12define half @powi_f16(half %x, i32 %n) nounwind {13 %ret = tail call half @llvm.powi.f16.i32(half %x, i32 %n)14 ret half %ret15}16 17; ARM64EC-LABEL: powi_f3218; ARM64EC: scvtf s1, w019; ARM64EC: b "#powf"20define float @powi_f32(float %x, i32 %n) nounwind {21 %ret = tail call float @llvm.powi.f32.i32(float %x, i32 %n)22 ret float %ret23}24 25; ARM64EC-LABEL: powi_f6426; ARM64EC: scvtf d1, w027; ARM64EC: b "#pow"28define double @powi_f64(double %x, i32 %n) nounwind {29 %ret = tail call double @llvm.powi.f64.i32(double %x, i32 %n)30 ret double %ret31}32