1 ; RUN: llc -mtriple thumbv7-unknown-none-eabi -float-abi soft -filetype asm -o - %s | FileCheck %s
2 ; RUN: llc -mtriple thumbv7-unknown-none-eabi -float-abi hard -filetype asm -o - %s | FileCheck %s
3 ; RUN: llc -mtriple thumbv7-unknown-none-eabihf -float-abi soft -filetype asm -o - %s | FileCheck %s
4 ; RUN: llc -mtriple thumbv7-unknown-none-eabihf -float-abi hard -filetype asm -o - %s | FileCheck %s
6 ; RUN: llc -mtriple thumbv7-unknown-none-gnueabi -float-abi soft -filetype asm -o - %s | FileCheck %s
7 ; RUN: llc -mtriple thumbv7-unknown-none-gnueabi -float-abi hard -filetype asm -o - %s | FileCheck %s
8 ; RUN: llc -mtriple thumbv7-unknown-none-gnueabihf -float-abi soft -filetype asm -o - %s | FileCheck %s
9 ; RUN: llc -mtriple thumbv7-unknown-none-gnueabihf -float-abi hard -filetype asm -o - %s | FileCheck %s
11 ; RUN: llc -mtriple thumbv7-unknown-none-musleabi -float-abi soft -filetype asm -o - %s | FileCheck %s
12 ; RUN: llc -mtriple thumbv7-unknown-none-musleabi -float-abi hard -filetype asm -o - %s | FileCheck %s
13 ; RUN: llc -mtriple thumbv7-unknown-none-musleabihf -float-abi soft -filetype asm -o - %s | FileCheck %s
14 ; RUN: llc -mtriple thumbv7-unknown-none-musleabihf -float-abi hard -filetype asm -o - %s | FileCheck %s
16 declare float @llvm.powi.f32.i32(float, i32)
18 define float @powi_f32(float %f, i32 %i) {
20 %0 = call float @llvm.powi.f32.i32(float %f, i32 %i)
26 declare double @llvm.powi.f64.i32(double, i32)
28 define double @powi_f64(double %d, i32 %i) {
30 %0 = call double @llvm.powi.f64.i32(double %d, i32 %i)
36 declare float @llvm.floor.f32(float)
38 define float @floor_f32(float %f) {
40 %0 = call float @llvm.floor.f32(float %f)
46 declare double @llvm.floor.f64(double)
48 define double @floor_f64(double %d) {
50 %0 = call double @llvm.floor.f64(double %d)