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
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
; RUN: llc < %s -mcpu=pentium -mtriple=i686-linux-gnu -float-abi=soft | FileCheck %s

define i1 @test1(double %d) #0 {
entry:
  %cmp = fcmp ule double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test1:
; CHECK: calll __gtdf2
; CHECK: setle
; CHECK: retl
 
define i1 @test2(double %d) #0 {
entry:
  %cmp = fcmp ult double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test2:
; CHECK: calll __gedf2
; CHECK: sets
; CHECK: retl

define i1 @test3(double %d) #0 {
entry:
  %cmp = fcmp ugt double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test3:
; CHECK: calll __ledf2
; CHECK: setg
; CHECK: retl

define i1 @test4(double %d) #0 {
entry:
  %cmp = fcmp uge double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test4:
; CHECK: calll __ltdf2
; CHECK: setns
; CHECK: retl

define i1 @test5(double %d) #0 {
entry:
  %cmp = fcmp ole double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test5:  
; CHECK: calll __ledf2
; CHECK: setle
; CHECK: retl

define i1 @test6(double %d) #0 {
entry:
  %cmp = fcmp olt double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test6:
; CHECK: calll __ltdf2
; CHECK: sets
; CHECK: retl

define i1 @test7(double %d) #0 {
entry:
  %cmp = fcmp ogt double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test7:
; CHECK: calll __gtdf2
; CHECK: setg
; CHECK: retl

define i1 @test8(double %d) #0 {
entry:
  %cmp = fcmp oge double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test8:
; CHECK: calll __gedf2
; CHECK: setns
; CHECK: retl

define i1 @test9(double %d) #0 {
entry:
  %cmp = fcmp oeq double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test9:
; CHECK: calll __eqdf2
; CHECK: sete
; CHECK: retl

define i1 @test10(double %d) #0 {
entry:
  %cmp = fcmp ueq double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test10:
; CHECK: calll __eqdf2
; CHECK: sete
; CHECK: calll __unorddf2
; CHECK: setne
; CHECK: retl

define i1 @test11(double %d) #0 {
entry:
  %cmp = fcmp one double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test11:
; CHECK: calll __gtdf2
; CHECK: setg
; CHECK: calll __ltdf2
; CHECK: sets
; CHECK: retl

define i1 @test12(double %d) #0 {
entry:
  %cmp = fcmp une double %d, 0.000000e+00
  ret i1 %cmp
}
; CHECK-LABEL: test12:
; CHECK: calll __nedf2
; CHECK: setne
; CHECK: retl

attributes #0 = { "use-soft-float"="true" }