brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.3 KiB · 74e6574 Raw
99 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lsx < %s 2>&1 | FileCheck %s3 4declare <8 x i16> @llvm.loongarch.lsx.vsllwil.h.b(<16 x i8>, i32)5 6define <8 x i16> @lsx_vsllwil_h_b_lo(<16 x i8> %va) nounwind {7; CHECK: llvm.loongarch.lsx.vsllwil.h.b: argument out of range8entry:9  %res = call <8 x i16> @llvm.loongarch.lsx.vsllwil.h.b(<16 x i8> %va, i32 -1)10  ret <8 x i16> %res11}12 13define <8 x i16> @lsx_vsllwil_h_b_hi(<16 x i8> %va) nounwind {14; CHECK: llvm.loongarch.lsx.vsllwil.h.b: argument out of range15entry:16  %res = call <8 x i16> @llvm.loongarch.lsx.vsllwil.h.b(<16 x i8> %va, i32 8)17  ret <8 x i16> %res18}19 20declare <4 x i32> @llvm.loongarch.lsx.vsllwil.w.h(<8 x i16>, i32)21 22define <4 x i32> @lsx_vsllwil_w_h_lo(<8 x i16> %va) nounwind {23; CHECK: llvm.loongarch.lsx.vsllwil.w.h: argument out of range24entry:25  %res = call <4 x i32> @llvm.loongarch.lsx.vsllwil.w.h(<8 x i16> %va, i32 -1)26  ret <4 x i32> %res27}28 29define <4 x i32> @lsx_vsllwil_w_h_hi(<8 x i16> %va) nounwind {30; CHECK: llvm.loongarch.lsx.vsllwil.w.h: argument out of range31entry:32  %res = call <4 x i32> @llvm.loongarch.lsx.vsllwil.w.h(<8 x i16> %va, i32 16)33  ret <4 x i32> %res34}35 36declare <2 x i64> @llvm.loongarch.lsx.vsllwil.d.w(<4 x i32>, i32)37 38define <2 x i64> @lsx_vsllwil_d_w_lo(<4 x i32> %va) nounwind {39; CHECK: llvm.loongarch.lsx.vsllwil.d.w: argument out of range40entry:41  %res = call <2 x i64> @llvm.loongarch.lsx.vsllwil.d.w(<4 x i32> %va, i32 -1)42  ret <2 x i64> %res43}44 45define <2 x i64> @lsx_vsllwil_d_w_hi(<4 x i32> %va) nounwind {46; CHECK: llvm.loongarch.lsx.vsllwil.d.w: argument out of range47entry:48  %res = call <2 x i64> @llvm.loongarch.lsx.vsllwil.d.w(<4 x i32> %va, i32 32)49  ret <2 x i64> %res50}51 52declare <8 x i16> @llvm.loongarch.lsx.vsllwil.hu.bu(<16 x i8>, i32)53 54define <8 x i16> @lsx_vsllwil_hu_bu_lo(<16 x i8> %va) nounwind {55; CHECK: llvm.loongarch.lsx.vsllwil.hu.bu: argument out of range56entry:57  %res = call <8 x i16> @llvm.loongarch.lsx.vsllwil.hu.bu(<16 x i8> %va, i32 -1)58  ret <8 x i16> %res59}60 61define <8 x i16> @lsx_vsllwil_hu_bu_hi(<16 x i8> %va) nounwind {62; CHECK: llvm.loongarch.lsx.vsllwil.hu.bu: argument out of range63entry:64  %res = call <8 x i16> @llvm.loongarch.lsx.vsllwil.hu.bu(<16 x i8> %va, i32 8)65  ret <8 x i16> %res66}67 68declare <4 x i32> @llvm.loongarch.lsx.vsllwil.wu.hu(<8 x i16>, i32)69 70define <4 x i32> @lsx_vsllwil_wu_hu_lo(<8 x i16> %va) nounwind {71; CHECK: llvm.loongarch.lsx.vsllwil.wu.hu: argument out of range72entry:73  %res = call <4 x i32> @llvm.loongarch.lsx.vsllwil.wu.hu(<8 x i16> %va, i32 -1)74  ret <4 x i32> %res75}76 77define <4 x i32> @lsx_vsllwil_wu_hu_hi(<8 x i16> %va) nounwind {78; CHECK: llvm.loongarch.lsx.vsllwil.wu.hu: argument out of range79entry:80  %res = call <4 x i32> @llvm.loongarch.lsx.vsllwil.wu.hu(<8 x i16> %va, i32 16)81  ret <4 x i32> %res82}83 84declare <2 x i64> @llvm.loongarch.lsx.vsllwil.du.wu(<4 x i32>, i32)85 86define <2 x i64> @lsx_vsllwil_du_wu_lo(<4 x i32> %va) nounwind {87; CHECK: llvm.loongarch.lsx.vsllwil.du.wu: argument out of range88entry:89  %res = call <2 x i64> @llvm.loongarch.lsx.vsllwil.du.wu(<4 x i32> %va, i32 -1)90  ret <2 x i64> %res91}92 93define <2 x i64> @lsx_vsllwil_du_wu_hi(<4 x i32> %va) nounwind {94; CHECK: llvm.loongarch.lsx.vsllwil.du.wu: argument out of range95entry:96  %res = call <2 x i64> @llvm.loongarch.lsx.vsllwil.du.wu(<4 x i32> %va, i32 32)97  ret <2 x i64> %res98}99