blob: 6a6283a10dab7afb0f20e859479c9eefed098c67 [file] [log] [blame]
Dan Gohman28beeea2007-08-15 13:36:28 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep min | count 1
2; RUN: llvm-as < %s | llc -march=x86-64 | grep max | count 1
3; RUN: llvm-as < %s | llc -march=x86-64 | grep mov | count 2
Dan Gohman02e25b72007-07-10 15:34:29 +00004
5declare float @bar()
6
7define float @foo(float %a)
8{
9 %s = call float @bar()
10 %t = fcmp olt float %s, %a
11 %u = select i1 %t, float %s, float %a
12 ret float %u
13}
14define float @hem(float %a)
15{
16 %s = call float @bar()
17 %t = fcmp uge float %s, %a
18 %u = select i1 %t, float %s, float %a
19 ret float %u
20}