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
5
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
10
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
15
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 %0
22}
23
24; CHECK: b __powisf2
25
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 %0
32}
33
34; CHECK: b __powidf2
35
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 %0
42}
43
44; CHECK: b floorf
45
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 %0
52}
53
54; CHECK: b floor
55