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
; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
; CHECK-NOT:     {{(min|max|mov)}}
; CHECK:     mov
; CHECK-NOT:     {{(min|max|mov)}}
; CHECK:     min
; CHECK-NOT:     {{(min|max|mov)}}
; CHECK:     mov
; CHECK-NOT:     {{(min|max|mov)}}
; CHECK:     max
; CHECK-NOT:     {{(min|max|mov)}}

declare float @bar()

define float @foo(float %a) nounwind
{
  %s = call float @bar()
  %t = fcmp olt float %s, %a
  %u = select i1 %t, float %s, float %a
  ret float %u
}
define float @hem(float %a) nounwind
{
  %s = call float @bar()
  %t = fcmp ogt float %s, %a
  %u = select i1 %t, float %s, float %a
  ret float %u
}