; RUN: llvm-as < %s | llc -march=x86-64 | grep min | wc -l | grep 1
; RUN: llvm-as < %s | llc -march=x86-64 | grep max | wc -l | grep 1
; RUN: llvm-as < %s | llc -march=x86-64 | grep mov | wc -l | grep 2

declare float @bar()

define float @foo(float %a)
{
  %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)
{
  %s = call float @bar()
  %t = fcmp uge float %s, %a
  %u = select i1 %t, float %s, float %a
  ret float %u
}

Add a regression test for folding spill code into scalar min and max.
Add a regression test for folding spill code into scalar min and max.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@38492 91177308-0d34-0410-b5e6-96231b3b80d8
