1 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s
2 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
5 define float @test1(float %x) nounwind {
6 %call = tail call float @floorf(float %x) nounwind readnone
13 declare float @floorf(float) nounwind readnone
15 define double @test2(double %x) nounwind {
16 %call = tail call double @floor(double %x) nounwind readnone
23 declare double @floor(double) nounwind readnone
25 define float @test3(float %x) nounwind {
26 %call = tail call float @roundf(float %x) nounwind readnone
33 declare float @roundf(float) nounwind readnone
35 define double @test4(double %x) nounwind {
36 %call = tail call double @round(double %x) nounwind readnone
43 declare double @round(double) nounwind readnone
45 define float @test5(float %x) nounwind {
46 %call = tail call float @ceilf(float %x) nounwind readnone
53 declare float @ceilf(float) nounwind readnone
55 define double @test6(double %x) nounwind {
56 %call = tail call double @ceil(double %x) nounwind readnone
63 declare double @ceil(double) nounwind readnone
65 define float @test9(float %x) nounwind {
66 %call = tail call float @truncf(float %x) nounwind readnone
73 declare float @truncf(float) nounwind readnone
75 define double @test10(double %x) nounwind {
76 %call = tail call double @trunc(double %x) nounwind readnone
79 ; CHECK-LABEL: test10:
83 declare double @trunc(double) nounwind readnone