55 lines · plain
1; RUN: llc -mtriple thumbv7-unknown-none-eabi -float-abi soft -filetype asm -o - %s | FileCheck %s2; RUN: llc -mtriple thumbv7-unknown-none-eabi -float-abi hard -filetype asm -o - %s | FileCheck %s3; RUN: llc -mtriple thumbv7-unknown-none-eabihf -float-abi soft -filetype asm -o - %s | FileCheck %s4; RUN: llc -mtriple thumbv7-unknown-none-eabihf -float-abi hard -filetype asm -o - %s | FileCheck %s5 6; RUN: llc -mtriple thumbv7-unknown-none-gnueabi -float-abi soft -filetype asm -o - %s | FileCheck %s7; RUN: llc -mtriple thumbv7-unknown-none-gnueabi -float-abi hard -filetype asm -o - %s | FileCheck %s8; RUN: llc -mtriple thumbv7-unknown-none-gnueabihf -float-abi soft -filetype asm -o - %s | FileCheck %s9; RUN: llc -mtriple thumbv7-unknown-none-gnueabihf -float-abi hard -filetype asm -o - %s | FileCheck %s10 11; RUN: llc -mtriple thumbv7-unknown-none-musleabi -float-abi soft -filetype asm -o - %s | FileCheck %s12; RUN: llc -mtriple thumbv7-unknown-none-musleabi -float-abi hard -filetype asm -o - %s | FileCheck %s13; RUN: llc -mtriple thumbv7-unknown-none-musleabihf -float-abi soft -filetype asm -o - %s | FileCheck %s14; RUN: llc -mtriple thumbv7-unknown-none-musleabihf -float-abi hard -filetype asm -o - %s | FileCheck %s15 16declare float @llvm.powi.f32.i32(float, i32)17 18define float @powi_f32(float %f, i32 %i) {19entry:20 %0 = call float @llvm.powi.f32.i32(float %f, i32 %i)21 ret float %022}23 24; CHECK: b __powisf225 26declare double @llvm.powi.f64.i32(double, i32)27 28define double @powi_f64(double %d, i32 %i) {29entry:30 %0 = call double @llvm.powi.f64.i32(double %d, i32 %i)31 ret double %032}33 34; CHECK: b __powidf235 36declare float @llvm.floor.f32(float)37 38define float @floor_f32(float %f) {39entry:40 %0 = call float @llvm.floor.f32(float %f)41 ret float %042}43 44; CHECK: b floorf45 46declare double @llvm.floor.f64(double)47 48define double @floor_f64(double %d) {49entry:50 %0 = call double @llvm.floor.f64(double %d)51 ret double %052}53 54; CHECK: b floor55