25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=x86_64-pc-windows-msvc %s -o - | FileCheck %s -check-prefix=WIN3; RUN: llc -mtriple=x86_64-pc-linux %s -o -| FileCheck %s -check-prefix=UNIX4 5declare float @llvm.experimental.constrained.powi.f32(float, i32, metadata, metadata)6 7define float @powi_f64(float %a, i32 %b) nounwind strictfp {8; WIN-LABEL: powi_f64:9; WIN: # %bb.0:10; WIN-NEXT: subq $40, %rsp11; WIN-NEXT: cvtsi2ss %edx, %xmm112; WIN-NEXT: callq powf13; WIN-NEXT: addq $40, %rsp14; WIN-NEXT: retq15;16; UNIX-LABEL: powi_f64:17; UNIX: # %bb.0:18; UNIX-NEXT: pushq %rax19; UNIX-NEXT: callq __powisf2@PLT20; UNIX-NEXT: popq %rax21; UNIX-NEXT: retq22 %1 = call float @llvm.experimental.constrained.powi.f32(float %a, i32 %b, metadata !"round.tonearest", metadata !"fpexcept.ignore") strictfp23 ret float %124}25