mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
ddbfbcf72e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127732 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
619 B
LLVM
28 lines
619 B
LLVM
; 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
|
|
}
|