From 27db99fcee85939f0b7580ad55303c4c60a3b98d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 26 Jul 2012 17:43:27 +0000 Subject: Add a floor intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160791 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'docs/LangRef.html') diff --git a/docs/LangRef.html b/docs/LangRef.html index 4d0539241f..ef58b98817 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -258,6 +258,7 @@
  • 'llvm.log.*' Intrinsic
  • 'llvm.fma.*' Intrinsic
  • 'llvm.fabs.*' Intrinsic
  • +
  • 'llvm.floor.*' Intrinsic
  • Bit Manipulation Intrinsics @@ -7544,6 +7545,40 @@ LLVM.

    + +

    + 'llvm.floor.*' Intrinsic +

    + +
    + +
    Syntax:
    +

    This is an overloaded intrinsic. You can use llvm.floor on any + floating point or vector of floating point type. Not all targets support all + types however.

    + +
    +  declare float     @llvm.floor.f32(float  %Val)
    +  declare double    @llvm.floor.f64(double %Val)
    +  declare x86_fp80  @llvm.floor.f80(x86_fp80  %Val)
    +  declare fp128     @llvm.floor.f128(fp128 %Val)
    +  declare ppc_fp128 @llvm.floor.ppcf128(ppc_fp128  %Val)
    +
    + +
    Overview:
    +

    The 'llvm.floor.*' intrinsics return the floor of + the operand.

    + +
    Arguments:
    +

    The argument and return value are floating point numbers of the same + type.

    + +
    Semantics:
    +

    This function returns the same values as the libm floor functions + would, and handles error conditions in the same way.

    + +
    + -- cgit v1.2.3