brintos

brintos / llvm-project-archived public Read only

0
0
Text · 11.0 KiB · b716c32 Raw
352 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s4 5declare <8 x i32> @llvm.loongarch.lasx.xvftintrne.w.s(<8 x float>)6 7define <8 x i32> @lasx_xvftintrne_w_s(<8 x float> %va) nounwind {8; CHECK-LABEL: lasx_xvftintrne_w_s:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    xvftintrne.w.s $xr0, $xr011; CHECK-NEXT:    ret12entry:13  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrne.w.s(<8 x float> %va)14  ret <8 x i32> %res15}16 17declare <4 x i64> @llvm.loongarch.lasx.xvftintrne.l.d(<4 x double>)18 19define <4 x i64> @lasx_xvftintrne_l_d(<4 x double> %va) nounwind {20; CHECK-LABEL: lasx_xvftintrne_l_d:21; CHECK:       # %bb.0: # %entry22; CHECK-NEXT:    xvftintrne.l.d $xr0, $xr023; CHECK-NEXT:    ret24entry:25  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrne.l.d(<4 x double> %va)26  ret <4 x i64> %res27}28 29declare <8 x i32> @llvm.loongarch.lasx.xvftintrz.w.s(<8 x float>)30 31define <8 x i32> @lasx_xvftintrz_w_s(<8 x float> %va) nounwind {32; CHECK-LABEL: lasx_xvftintrz_w_s:33; CHECK:       # %bb.0: # %entry34; CHECK-NEXT:    xvftintrz.w.s $xr0, $xr035; CHECK-NEXT:    ret36entry:37  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrz.w.s(<8 x float> %va)38  ret <8 x i32> %res39}40 41declare <4 x i64> @llvm.loongarch.lasx.xvftintrz.l.d(<4 x double>)42 43define <4 x i64> @lasx_xvftintrz_l_d(<4 x double> %va) nounwind {44; CHECK-LABEL: lasx_xvftintrz_l_d:45; CHECK:       # %bb.0: # %entry46; CHECK-NEXT:    xvftintrz.l.d $xr0, $xr047; CHECK-NEXT:    ret48entry:49  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrz.l.d(<4 x double> %va)50  ret <4 x i64> %res51}52 53declare <8 x i32> @llvm.loongarch.lasx.xvftintrp.w.s(<8 x float>)54 55define <8 x i32> @lasx_xvftintrp_w_s(<8 x float> %va) nounwind {56; CHECK-LABEL: lasx_xvftintrp_w_s:57; CHECK:       # %bb.0: # %entry58; CHECK-NEXT:    xvftintrp.w.s $xr0, $xr059; CHECK-NEXT:    ret60entry:61  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrp.w.s(<8 x float> %va)62  ret <8 x i32> %res63}64 65declare <4 x i64> @llvm.loongarch.lasx.xvftintrp.l.d(<4 x double>)66 67define <4 x i64> @lasx_xvftintrp_l_d(<4 x double> %va) nounwind {68; CHECK-LABEL: lasx_xvftintrp_l_d:69; CHECK:       # %bb.0: # %entry70; CHECK-NEXT:    xvftintrp.l.d $xr0, $xr071; CHECK-NEXT:    ret72entry:73  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrp.l.d(<4 x double> %va)74  ret <4 x i64> %res75}76 77declare <8 x i32> @llvm.loongarch.lasx.xvftintrm.w.s(<8 x float>)78 79define <8 x i32> @lasx_xvftintrm_w_s(<8 x float> %va) nounwind {80; CHECK-LABEL: lasx_xvftintrm_w_s:81; CHECK:       # %bb.0: # %entry82; CHECK-NEXT:    xvftintrm.w.s $xr0, $xr083; CHECK-NEXT:    ret84entry:85  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrm.w.s(<8 x float> %va)86  ret <8 x i32> %res87}88 89declare <4 x i64> @llvm.loongarch.lasx.xvftintrm.l.d(<4 x double>)90 91define <4 x i64> @lasx_xvftintrm_l_d(<4 x double> %va) nounwind {92; CHECK-LABEL: lasx_xvftintrm_l_d:93; CHECK:       # %bb.0: # %entry94; CHECK-NEXT:    xvftintrm.l.d $xr0, $xr095; CHECK-NEXT:    ret96entry:97  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrm.l.d(<4 x double> %va)98  ret <4 x i64> %res99}100 101declare <8 x i32> @llvm.loongarch.lasx.xvftint.w.s(<8 x float>)102 103define <8 x i32> @lasx_xvftint_w_s(<8 x float> %va) nounwind {104; CHECK-LABEL: lasx_xvftint_w_s:105; CHECK:       # %bb.0: # %entry106; CHECK-NEXT:    xvftint.w.s $xr0, $xr0107; CHECK-NEXT:    ret108entry:109  %res = call <8 x i32> @llvm.loongarch.lasx.xvftint.w.s(<8 x float> %va)110  ret <8 x i32> %res111}112 113declare <4 x i64> @llvm.loongarch.lasx.xvftint.l.d(<4 x double>)114 115define <4 x i64> @lasx_xvftint_l_d(<4 x double> %va) nounwind {116; CHECK-LABEL: lasx_xvftint_l_d:117; CHECK:       # %bb.0: # %entry118; CHECK-NEXT:    xvftint.l.d $xr0, $xr0119; CHECK-NEXT:    ret120entry:121  %res = call <4 x i64> @llvm.loongarch.lasx.xvftint.l.d(<4 x double> %va)122  ret <4 x i64> %res123}124 125declare <8 x i32> @llvm.loongarch.lasx.xvftintrz.wu.s(<8 x float>)126 127define <8 x i32> @lasx_xvftintrz_wu_s(<8 x float> %va) nounwind {128; CHECK-LABEL: lasx_xvftintrz_wu_s:129; CHECK:       # %bb.0: # %entry130; CHECK-NEXT:    xvftintrz.wu.s $xr0, $xr0131; CHECK-NEXT:    ret132entry:133  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrz.wu.s(<8 x float> %va)134  ret <8 x i32> %res135}136 137declare <4 x i64> @llvm.loongarch.lasx.xvftintrz.lu.d(<4 x double>)138 139define <4 x i64> @lasx_xvftintrz_lu_d(<4 x double> %va) nounwind {140; CHECK-LABEL: lasx_xvftintrz_lu_d:141; CHECK:       # %bb.0: # %entry142; CHECK-NEXT:    xvftintrz.lu.d $xr0, $xr0143; CHECK-NEXT:    ret144entry:145  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrz.lu.d(<4 x double> %va)146  ret <4 x i64> %res147}148 149declare <8 x i32> @llvm.loongarch.lasx.xvftint.wu.s(<8 x float>)150 151define <8 x i32> @lasx_xvftint_wu_s(<8 x float> %va) nounwind {152; CHECK-LABEL: lasx_xvftint_wu_s:153; CHECK:       # %bb.0: # %entry154; CHECK-NEXT:    xvftint.wu.s $xr0, $xr0155; CHECK-NEXT:    ret156entry:157  %res = call <8 x i32> @llvm.loongarch.lasx.xvftint.wu.s(<8 x float> %va)158  ret <8 x i32> %res159}160 161declare <4 x i64> @llvm.loongarch.lasx.xvftint.lu.d(<4 x double>)162 163define <4 x i64> @lasx_xvftint_lu_d(<4 x double> %va) nounwind {164; CHECK-LABEL: lasx_xvftint_lu_d:165; CHECK:       # %bb.0: # %entry166; CHECK-NEXT:    xvftint.lu.d $xr0, $xr0167; CHECK-NEXT:    ret168entry:169  %res = call <4 x i64> @llvm.loongarch.lasx.xvftint.lu.d(<4 x double> %va)170  ret <4 x i64> %res171}172 173declare <8 x i32> @llvm.loongarch.lasx.xvftintrne.w.d(<4 x double>, <4 x double>)174 175define <8 x i32> @lasx_xvftintrne_w_d(<4 x double> %va, <4 x double> %vb) nounwind {176; CHECK-LABEL: lasx_xvftintrne_w_d:177; CHECK:       # %bb.0: # %entry178; CHECK-NEXT:    xvftintrne.w.d $xr0, $xr0, $xr1179; CHECK-NEXT:    ret180entry:181  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrne.w.d(<4 x double> %va, <4 x double> %vb)182  ret <8 x i32> %res183}184 185declare <8 x i32> @llvm.loongarch.lasx.xvftintrz.w.d(<4 x double>, <4 x double>)186 187define <8 x i32> @lasx_xvftintrz_w_d(<4 x double> %va, <4 x double> %vb) nounwind {188; CHECK-LABEL: lasx_xvftintrz_w_d:189; CHECK:       # %bb.0: # %entry190; CHECK-NEXT:    xvftintrz.w.d $xr0, $xr0, $xr1191; CHECK-NEXT:    ret192entry:193  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrz.w.d(<4 x double> %va, <4 x double> %vb)194  ret <8 x i32> %res195}196 197declare <8 x i32> @llvm.loongarch.lasx.xvftintrp.w.d(<4 x double>, <4 x double>)198 199define <8 x i32> @lasx_xvftintrp_w_d(<4 x double> %va, <4 x double> %vb) nounwind {200; CHECK-LABEL: lasx_xvftintrp_w_d:201; CHECK:       # %bb.0: # %entry202; CHECK-NEXT:    xvftintrp.w.d $xr0, $xr0, $xr1203; CHECK-NEXT:    ret204entry:205  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrp.w.d(<4 x double> %va, <4 x double> %vb)206  ret <8 x i32> %res207}208 209declare <8 x i32> @llvm.loongarch.lasx.xvftintrm.w.d(<4 x double>, <4 x double>)210 211define <8 x i32> @lasx_xvftintrm_w_d(<4 x double> %va, <4 x double> %vb) nounwind {212; CHECK-LABEL: lasx_xvftintrm_w_d:213; CHECK:       # %bb.0: # %entry214; CHECK-NEXT:    xvftintrm.w.d $xr0, $xr0, $xr1215; CHECK-NEXT:    ret216entry:217  %res = call <8 x i32> @llvm.loongarch.lasx.xvftintrm.w.d(<4 x double> %va, <4 x double> %vb)218  ret <8 x i32> %res219}220 221declare <8 x i32> @llvm.loongarch.lasx.xvftint.w.d(<4 x double>, <4 x double>)222 223define <8 x i32> @lasx_xvftint_w_d(<4 x double> %va, <4 x double> %vb) nounwind {224; CHECK-LABEL: lasx_xvftint_w_d:225; CHECK:       # %bb.0: # %entry226; CHECK-NEXT:    xvftint.w.d $xr0, $xr0, $xr1227; CHECK-NEXT:    ret228entry:229  %res = call <8 x i32> @llvm.loongarch.lasx.xvftint.w.d(<4 x double> %va, <4 x double> %vb)230  ret <8 x i32> %res231}232 233declare <4 x i64> @llvm.loongarch.lasx.xvftintrnel.l.s(<8 x float>)234 235define <4 x i64> @lasx_xvftintrnel_l_s(<8 x float> %va) nounwind {236; CHECK-LABEL: lasx_xvftintrnel_l_s:237; CHECK:       # %bb.0: # %entry238; CHECK-NEXT:    xvftintrnel.l.s $xr0, $xr0239; CHECK-NEXT:    ret240entry:241  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrnel.l.s(<8 x float> %va)242  ret <4 x i64> %res243}244 245declare <4 x i64> @llvm.loongarch.lasx.xvftintrneh.l.s(<8 x float>)246 247define <4 x i64> @lasx_xvftintrneh_l_s(<8 x float> %va) nounwind {248; CHECK-LABEL: lasx_xvftintrneh_l_s:249; CHECK:       # %bb.0: # %entry250; CHECK-NEXT:    xvftintrneh.l.s $xr0, $xr0251; CHECK-NEXT:    ret252entry:253  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrneh.l.s(<8 x float> %va)254  ret <4 x i64> %res255}256 257declare <4 x i64> @llvm.loongarch.lasx.xvftintrzl.l.s(<8 x float>)258 259define <4 x i64> @lasx_xvftintrzl_l_s(<8 x float> %va) nounwind {260; CHECK-LABEL: lasx_xvftintrzl_l_s:261; CHECK:       # %bb.0: # %entry262; CHECK-NEXT:    xvftintrzl.l.s $xr0, $xr0263; CHECK-NEXT:    ret264entry:265  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrzl.l.s(<8 x float> %va)266  ret <4 x i64> %res267}268 269declare <4 x i64> @llvm.loongarch.lasx.xvftintrzh.l.s(<8 x float>)270 271define <4 x i64> @lasx_xvftintrzh_l_s(<8 x float> %va) nounwind {272; CHECK-LABEL: lasx_xvftintrzh_l_s:273; CHECK:       # %bb.0: # %entry274; CHECK-NEXT:    xvftintrzh.l.s $xr0, $xr0275; CHECK-NEXT:    ret276entry:277  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrzh.l.s(<8 x float> %va)278  ret <4 x i64> %res279}280 281declare <4 x i64> @llvm.loongarch.lasx.xvftintrpl.l.s(<8 x float>)282 283define <4 x i64> @lasx_xvftintrpl_l_s(<8 x float> %va) nounwind {284; CHECK-LABEL: lasx_xvftintrpl_l_s:285; CHECK:       # %bb.0: # %entry286; CHECK-NEXT:    xvftintrpl.l.s $xr0, $xr0287; CHECK-NEXT:    ret288entry:289  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrpl.l.s(<8 x float> %va)290  ret <4 x i64> %res291}292 293declare <4 x i64> @llvm.loongarch.lasx.xvftintrph.l.s(<8 x float>)294 295define <4 x i64> @lasx_xvftintrph_l_s(<8 x float> %va) nounwind {296; CHECK-LABEL: lasx_xvftintrph_l_s:297; CHECK:       # %bb.0: # %entry298; CHECK-NEXT:    xvftintrph.l.s $xr0, $xr0299; CHECK-NEXT:    ret300entry:301  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrph.l.s(<8 x float> %va)302  ret <4 x i64> %res303}304 305declare <4 x i64> @llvm.loongarch.lasx.xvftintrml.l.s(<8 x float>)306 307define <4 x i64> @lasx_xvftintrml_l_s(<8 x float> %va) nounwind {308; CHECK-LABEL: lasx_xvftintrml_l_s:309; CHECK:       # %bb.0: # %entry310; CHECK-NEXT:    xvftintrml.l.s $xr0, $xr0311; CHECK-NEXT:    ret312entry:313  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrml.l.s(<8 x float> %va)314  ret <4 x i64> %res315}316 317declare <4 x i64> @llvm.loongarch.lasx.xvftintrmh.l.s(<8 x float>)318 319define <4 x i64> @lasx_xvftintrmh_l_s(<8 x float> %va) nounwind {320; CHECK-LABEL: lasx_xvftintrmh_l_s:321; CHECK:       # %bb.0: # %entry322; CHECK-NEXT:    xvftintrmh.l.s $xr0, $xr0323; CHECK-NEXT:    ret324entry:325  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintrmh.l.s(<8 x float> %va)326  ret <4 x i64> %res327}328 329declare <4 x i64> @llvm.loongarch.lasx.xvftintl.l.s(<8 x float>)330 331define <4 x i64> @lasx_xvftintl_l_s(<8 x float> %va) nounwind {332; CHECK-LABEL: lasx_xvftintl_l_s:333; CHECK:       # %bb.0: # %entry334; CHECK-NEXT:    xvftintl.l.s $xr0, $xr0335; CHECK-NEXT:    ret336entry:337  %res = call <4 x i64> @llvm.loongarch.lasx.xvftintl.l.s(<8 x float> %va)338  ret <4 x i64> %res339}340 341declare <4 x i64> @llvm.loongarch.lasx.xvftinth.l.s(<8 x float>)342 343define <4 x i64> @lasx_xvftinth_l_s(<8 x float> %va) nounwind {344; CHECK-LABEL: lasx_xvftinth_l_s:345; CHECK:       # %bb.0: # %entry346; CHECK-NEXT:    xvftinth.l.s $xr0, $xr0347; CHECK-NEXT:    ret348entry:349  %res = call <4 x i64> @llvm.loongarch.lasx.xvftinth.l.s(<8 x float> %va)350  ret <4 x i64> %res351}352