Debian Codegraph @

llvm/test/CodeGen/MSP430/powi-soften-libcall-error.ll

raw
1 ; RUN: not llc -mtriple=msp430 -filetype=null %s 2>&1 | FileCheck %s
2
3 ; FIXME: This should not fail but isn't implemented
4 ; CHECK: error: powi exponent does not match sizeof(int)
5 define float @soften_powi_error(float %x, i32 %n) {
6 %powi = call float @llvm.powi.f32.i32(float %x, i32 %n)
7 ret float %powi
8 }
9
10 ; CHECK: error: powi exponent does not match sizeof(int)
11 define float @soften_powi_error_strictfp(float %x, i32 %n) strictfp {
12 %powi = call float @llvm.experimental.constrained.powi.f32.i32(float %x, i32 %n, metadata !"round.tonearest", metadata !"fpexcept.strict")
13 ret float %powi
14 }
15
16