1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-pc-windows-msvc %s -o - | FileCheck %s -check-prefix=WIN
3 ; RUN: llc -mtriple=x86_64-pc-linux %s -o -| FileCheck %s -check-prefix=UNIX
5 declare float @llvm.experimental.constrained.powi.f32.i32(float, i32, metadata, metadata)
7 define float @powi_f64(float %a, i32 %b) nounwind strictfp {
10 ; WIN-NEXT: subq $40, %rsp
11 ; WIN-NEXT: cvtsi2ss %edx, %xmm1
12 ; WIN-NEXT: callq powf
13 ; WIN-NEXT: addq $40, %rsp
16 ; UNIX-LABEL: powi_f64:
18 ; UNIX-NEXT: pushq %rax
19 ; UNIX-NEXT: callq __powisf2@PLT
20 ; UNIX-NEXT: popq %rax
22 %1 = call float @llvm.experimental.constrained.powi.f32.i32(float %a, i32 %b, metadata !"round.tonearest", metadata !"fpexcept.ignore") strictfp