mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
458 B
LLVM
21 lines
458 B
LLVM
; RUN: llc < %s -march=x86-64 | grep min | count 1
|
|
; RUN: llc < %s -march=x86-64 | grep max | count 1
|
|
; RUN: llc < %s -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
|
|
}
|