1 ; RUN: llc < %s -mtriple=aarch64-- | FileCheck %s
3 declare double @llvm.powi.f64.i32(double, i32)
4 declare float @llvm.powi.f32.i32(float, i32)
5 declare float @pow(double noundef, double noundef)
7 define float @powi_f32(float %x) nounwind {
8 ; CHECK-LABEL: powi_f32:
10 ; CHECK-NEXT: fmul s0, s0, s0
11 ; CHECK-NEXT: fmul s0, s0, s0
13 %1 = tail call float @llvm.powi.f32.i32(float %x, i32 4)
17 define double @powi_f64(double %x) nounwind {
18 ; CHECK-LABEL: powi_f64:
20 ; CHECK-NEXT: fmul d1, d0, d0
21 ; CHECK-NEXT: fmul d0, d0, d1
23 %1 = tail call double @llvm.powi.f64.i32(double %x, i32 3)