You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
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