blob: 35c6f8c9b883eb65e88297395f45691a01f1594d [file]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; RUN: llc -mtriple=avr < %s | FileCheck %s
declare float @llvm.powi.f32.i16(float, i16)
declare double @llvm.powi.f64.i16(double, i16)
define float @powi_f32(float %a, i16 %b) {
; CHECK-LABEL: powi_f32:
; CHECK: ; %bb.0:
; CHECK-NEXT: rcall __powisf2
; CHECK-NEXT: ret
%r = call float @llvm.powi.f32.i16(float %a, i16 %b)
ret float %r
}
define double @powi_f64(double %a, i16 %b) {
; CHECK-LABEL: powi_f64:
; CHECK: ; %bb.0:
; CHECK-NEXT: rcall __powidf2
; CHECK-NEXT: ret
%r = call double @llvm.powi.f64.i16(double %a, i16 %b)
ret double %r
}