You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
parent
a7724cd563
commit
279aa8f685
67
external/llvm/test/CodeGen/Hexagon/sf-min-max.ll
vendored
Normal file
67
external/llvm/test/CodeGen/Hexagon/sf-min-max.ll
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
; RUN: llc -march=hexagon < %s | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: sf_min_olt:
|
||||
; CHECK: sfmin
|
||||
define float @sf_min_olt(float %x, float %y) #0 {
|
||||
%t = fcmp olt float %x, %y
|
||||
%u = select i1 %t, float %x, float %y
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_min_ole:
|
||||
; CHECK: sfmin
|
||||
define float @sf_min_ole(float %x, float %y) #0 {
|
||||
%t = fcmp ole float %x, %y
|
||||
%u = select i1 %t, float %x, float %y
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_max_ogt:
|
||||
; CHECK: sfmax
|
||||
define float @sf_max_ogt(float %x, float %y) #0 {
|
||||
%t = fcmp ogt float %x, %y
|
||||
%u = select i1 %t, float %x, float %y
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_max_oge:
|
||||
; CHECK: sfmax
|
||||
define float @sf_max_oge(float %x, float %y) #0 {
|
||||
%t = fcmp oge float %x, %y
|
||||
%u = select i1 %t, float %x, float %y
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_max_olt:
|
||||
; CHECK: sfmax
|
||||
define float @sf_max_olt(float %x, float %y) #0 {
|
||||
%t = fcmp olt float %x, %y
|
||||
%u = select i1 %t, float %y, float %x
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_max_ole:
|
||||
; CHECK: sfmax
|
||||
define float @sf_max_ole(float %x, float %y) #0 {
|
||||
%t = fcmp ole float %x, %y
|
||||
%u = select i1 %t, float %y, float %x
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_min_ogt:
|
||||
; CHECK: sfmin
|
||||
define float @sf_min_ogt(float %x, float %y) #0 {
|
||||
%t = fcmp ogt float %x, %y
|
||||
%u = select i1 %t, float %y, float %x
|
||||
ret float %u
|
||||
}
|
||||
|
||||
; CHECK-LABEL: sf_min_oge:
|
||||
; CHECK: sfmin
|
||||
define float @sf_min_oge(float %x, float %y) #0 {
|
||||
%t = fcmp oge float %x, %y
|
||||
%u = select i1 %t, float %y, float %x
|
||||
ret float %u
|
||||
}
|
||||
|
||||
attributes #0 = { nounwind "target-cpu"="hexagonv5" }
|
Reference in New Issue
Block a user