reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
; RUN: llc -mtriple i686-windows-itanium -filetype asm -o - %s | FileCheck %s

declare float @llvm.ceil.f32(float)
declare float @llvm.cos.f32(float)
declare float @llvm.exp.f32(float)
declare float @llvm.floor.f32(float)
declare float @llvm.log.f32(float)
declare float @llvm.log10.f32(float)
declare float @llvm.pow.f32(float, float)
declare float @llvm.sin.f32(float)

define float @f(float %f) {
  %r = call float @llvm.ceil.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _f:
; CHECK-NOT: calll _ceilf
; CHECK: calll _ceil{{$}}

define float @g(float %f) {
  %r = call float @llvm.cos.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _g:
; CHECK-NOT: calll _cosf
; CHECK: calll _cos{{$}}

define float @h(float %f) {
  %r = call float @llvm.exp.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _h:
; CHECK-NOT: calll _expf
; CHECK: calll _exp{{$}}

define float @i(float %f) {
  %r = call float @llvm.floor.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _i:
; CHECK-NOT: calll _floorf
; CHECK: calll _floor{{$}}

define float @j(float %f, float %g) {
  %r =  frem float %f, %g
  ret float %r
}

; CHECK-LABEL: _j:
; CHECK-NOT: calll _fmodf
; CHECK: calll _fmod{{$}}

define float @k(float %f) {
  %r = call float @llvm.log.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _k:
; CHECK-NOT: calll _logf
; CHECK: calll _log{{$}}

define float @l(float %f) {
  %r = call float @llvm.log10.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _l:
; CHECK-NOT: calll _log10f
; CHECK: calll _log10{{$}}

define float @m(float %f, float %g) {
  %r = call float @llvm.pow.f32(float %f, float %g)
  ret float %r
}

; CHECK-LABEL: _m:
; CHECK-NOT: calll _powf
; CHECK: calll _pow{{$}}

define float @n(float %f) {
  %r = call float @llvm.sin.f32(float %f)
  ret float %r
}

; CHECK-LABEL: _n:
; CHECK-NOT: calll _sinf
; CHECK: calll _sin{{$}}