brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 8e08e1e Raw
73 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 62; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s4 5define void @minnum_v8f32(ptr %res, ptr %x, ptr %y) nounwind {6; CHECK-LABEL: minnum_v8f32:7; CHECK:       # %bb.0: # %entry8; CHECK-NEXT:    xvld $xr0, $a1, 09; CHECK-NEXT:    xvld $xr1, $a2, 010; CHECK-NEXT:    xvfmin.s $xr0, $xr0, $xr111; CHECK-NEXT:    xvst $xr0, $a0, 012; CHECK-NEXT:    ret13entry:14  %v0 = load <8 x float>, ptr %x15  %v1 = load <8 x float>, ptr %y16  %r = call <8 x float> @llvm.minnum.v8f32(<8 x float> %v0, <8 x float> %v1)17  store <8 x float> %r, ptr %res18  ret void19}20 21define void @minnum_v4f64(ptr %res, ptr %x, ptr %y) nounwind {22; CHECK-LABEL: minnum_v4f64:23; CHECK:       # %bb.0: # %entry24; CHECK-NEXT:    xvld $xr0, $a1, 025; CHECK-NEXT:    xvld $xr1, $a2, 026; CHECK-NEXT:    xvfmin.d $xr0, $xr0, $xr127; CHECK-NEXT:    xvst $xr0, $a0, 028; CHECK-NEXT:    ret29entry:30  %v0 = load <4 x double>, ptr %x31  %v1 = load <4 x double>, ptr %y32  %r = call <4 x double> @llvm.minnum.v4f64(<4 x double> %v0, <4 x double> %v1)33  store <4 x double> %r, ptr %res34  ret void35}36 37define void @maxnum_v8f32(ptr %res, ptr %x, ptr %y) nounwind {38; CHECK-LABEL: maxnum_v8f32:39; CHECK:       # %bb.0: # %entry40; CHECK-NEXT:    xvld $xr0, $a1, 041; CHECK-NEXT:    xvld $xr1, $a2, 042; CHECK-NEXT:    xvfmax.s $xr0, $xr0, $xr143; CHECK-NEXT:    xvst $xr0, $a0, 044; CHECK-NEXT:    ret45entry:46  %v0 = load <8 x float>, ptr %x47  %v1 = load <8 x float>, ptr %y48  %r = call <8 x float> @llvm.maxnum.v8f32(<8 x float> %v0, <8 x float> %v1)49  store <8 x float> %r, ptr %res50  ret void51}52 53define void @maxnum_v4f64(ptr %res, ptr %x, ptr %y) nounwind {54; CHECK-LABEL: maxnum_v4f64:55; CHECK:       # %bb.0: # %entry56; CHECK-NEXT:    xvld $xr0, $a1, 057; CHECK-NEXT:    xvld $xr1, $a2, 058; CHECK-NEXT:    xvfmax.d $xr0, $xr0, $xr159; CHECK-NEXT:    xvst $xr0, $a0, 060; CHECK-NEXT:    ret61entry:62  %v0 = load <4 x double>, ptr %x63  %v1 = load <4 x double>, ptr %y64  %r = call <4 x double> @llvm.maxnum.v4f64(<4 x double> %v0, <4 x double> %v1)65  store <4 x double> %r, ptr %res66  ret void67}68 69declare <8 x float> @llvm.minnum.v8f32(<8 x float>, <8 x float>)70declare <4 x double> @llvm.minnum.v4f64(<4 x double>, <4 x double>)71declare <8 x float> @llvm.maxnum.v8f32(<8 x float>, <8 x float>)72declare <4 x double> @llvm.maxnum.v4f64(<4 x double>, <4 x double>)73