61 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"4target triple = "hexagon"5 6; CHECK-LABEL: cfminf7; CHECK: jump fminf8define float @cfminf(float %x, float %y) #0 {9entry:10 %call = tail call float @fminf(float %x, float %y) #111 ret float %call12}13 14; CHECK-LABEL: cfmaxf15; CHECK: jump fmaxf16define float @cfmaxf(float %x, float %y) #0 {17entry:18 %call = tail call float @fmaxf(float %x, float %y) #119 ret float %call20}21 22; CHECK-LABEL: minnum23; CHECK: jump fminf24define float @minnum(float %x, float %y) #0 {25entry:26 %call = tail call float @llvm.minnum.f32(float %x, float %y) #127 ret float %call28}29 30; CHECK-LABEL: maxnum31; CHECK: jump fmaxf32define float @maxnum(float %x, float %y) #0 {33entry:34 %call = tail call float @llvm.maxnum.f32(float %x, float %y) #135 ret float %call36}37 38; CHECK-LABEL: minimumnum39; CHECK: sfmin40define float @minimumnum(float %x, float %y) #0 {41entry:42 %call = tail call float @llvm.minimumnum.f32(float %x, float %y) #143 ret float %call44}45 46; CHECK-LABEL: maximumnum47; CHECK: sfmax48define float @maximumnum(float %x, float %y) #0 {49entry:50 %call = tail call float @llvm.maximumnum.f32(float %x, float %y) #151 ret float %call52}53 54 55declare float @fminf(float, float) #056declare float @fmaxf(float, float) #057 58attributes #0 = { nounwind readnone "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" "unsafe-fp-math"="false" "use-soft-float"="false" }59attributes #1 = { nounwind readnone }60 61