mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
794fa1f8f7
llvm-svn: 41097
21 lines
488 B
LLVM
21 lines
488 B
LLVM
; RUN: llvm-as < %s | llc -march=x86-64 | grep min | count 1
|
|
; RUN: llvm-as < %s | llc -march=x86-64 | grep max | count 1
|
|
; RUN: llvm-as < %s | llc -march=x86-64 | grep mov | count 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
|
|
}
|