brintos

brintos / llvm-project-archived public Read only

0
0
Text · 625 B · 4dd6fc0 Raw
19 lines · plain
1; RUN: not llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s 2>&1 | FileCheck %s2; RUN: not llc --mtriple=loongarch64 --mattr=+lasx < %s 2>&1 | FileCheck %s3 4declare <32 x i8> @llvm.loongarch.lasx.xvld(ptr, i32)5 6define <32 x i8> @lasx_xvld_lo(ptr %p) nounwind {7; CHECK: llvm.loongarch.lasx.xvld: argument out of range8entry:9  %res = call <32 x i8> @llvm.loongarch.lasx.xvld(ptr %p, i32 -2049)10  ret <32 x i8> %res11}12 13define <32 x i8> @lasx_xvld_hi(ptr %p) nounwind {14; CHECK: llvm.loongarch.lasx.xvld: argument out of range15entry:16  %res = call <32 x i8> @llvm.loongarch.lasx.xvld(ptr %p, i32 2048)17  ret <32 x i8> %res18}19