Files
linux-packaging-mono/external/llvm/test/CodeGen/Hexagon/fsel.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

23 lines
474 B
LLVM

; RUN: llc -march=hexagon -O0 < %s | FileCheck %s
; CHECK-LABEL: danny:
; CHECK: mux(p0,r1,##1065353216)
define float @danny(i32 %x, float %f) #0 {
%t = icmp sgt i32 %x, 0
%u = select i1 %t, float %f, float 1.0
ret float %u
}
; CHECK-LABEL: sammy:
; CHECK: mux(p0,##1069547520,r1)
define float @sammy(i32 %x, float %f) #0 {
%t = icmp sgt i32 %x, 0
%u = select i1 %t, float 1.5, float %f
ret float %u
}
attributes #0 = { nounwind "target-cpu"="hexagonv5" }