brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 8ce3421 Raw
83 lines · plain
1; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=hexagonv67 < %s | FileCheck %s2 3 4; CHECK-LABEL: t15; CHECK: jump fmax6 7define dso_local double @t1(double %a, double %b) local_unnamed_addr {8entry:9  %0 = tail call double @llvm.maxnum.f64(double %a, double %b)10  ret double %011}12 13; CHECK-LABEL: t214; CHECK: jump fmin15 16define dso_local double @t2(double %a, double %b) local_unnamed_addr {17entry:18  %0 = tail call double @llvm.minnum.f64(double %a, double %b)19  ret double %020}21 22; CHECK-LABEL: t323; CHECK: jump fmaxf24 25define dso_local float @t3(float %a, float %b) local_unnamed_addr {26entry:27  %0 = tail call float @llvm.maxnum.f32(float %a, float %b)28  ret float %029}30 31; CHECK-LABEL: t432; CHECK: jump fminf33 34define dso_local float @t4(float %a, float %b) local_unnamed_addr {35entry:36  %0 = tail call float @llvm.minnum.f32(float %a, float %b)37  ret float %038}39 40; CHECK-LABEL: t1num41; CHECK: dfmax42 43define dso_local double @t1num(double %a, double %b) local_unnamed_addr {44entry:45  %0 = tail call double @llvm.maximumnum.f64(double %a, double %b)46  ret double %047}48 49; CHECK-LABEL: t2num50; CHECK: dfmin51 52define dso_local double @t2num(double %a, double %b) local_unnamed_addr {53entry:54  %0 = tail call double @llvm.minimumnum.f64(double %a, double %b)55  ret double %056}57 58; CHECK-LABEL: t3num59; CHECK: sfmax60 61define dso_local float @t3num(float %a, float %b) local_unnamed_addr {62entry:63  %0 = tail call float @llvm.maximumnum.f32(float %a, float %b)64  ret float %065}66 67; CHECK-LABEL: t4num68; CHECK: sfmin69 70define dso_local float @t4num(float %a, float %b) local_unnamed_addr {71entry:72  %0 = tail call float @llvm.minimumnum.f32(float %a, float %b)73  ret float %074}75 76 77declare double @llvm.minnum.f64(double, double) #178declare double @llvm.maxnum.f64(double, double) #179declare float @llvm.maxnum.f32(float, float) #180declare float @llvm.minnum.f32(float, float) #181 82attributes #1 = { nounwind readnone speculatable }83