brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 582b49a Raw
64 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s | FileCheck %s3; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s4 5declare <2 x i64> @llvm.loongarch.lsx.vldi(i32)6 7define <2 x i64> @lsx_vldi() nounwind {8; CHECK-LABEL: lsx_vldi:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    vldi $vr0, 409511; CHECK-NEXT:    ret12entry:13  %res = call <2 x i64> @llvm.loongarch.lsx.vldi(i32 4095)14  ret <2 x i64> %res15}16 17declare <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32)18 19define <16 x i8> @lsx_vrepli_b() nounwind {20; CHECK-LABEL: lsx_vrepli_b:21; CHECK:       # %bb.0: # %entry22; CHECK-NEXT:    vrepli.b $vr0, 51123; CHECK-NEXT:    ret24entry:25  %res = call <16 x i8> @llvm.loongarch.lsx.vrepli.b(i32 511)26  ret <16 x i8> %res27}28 29declare <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32)30 31define <8 x i16> @lsx_vrepli_h() nounwind {32; CHECK-LABEL: lsx_vrepli_h:33; CHECK:       # %bb.0: # %entry34; CHECK-NEXT:    vrepli.h $vr0, 51135; CHECK-NEXT:    ret36entry:37  %res = call <8 x i16> @llvm.loongarch.lsx.vrepli.h(i32 511)38  ret <8 x i16> %res39}40 41declare <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32)42 43define <4 x i32> @lsx_vrepli_w() nounwind {44; CHECK-LABEL: lsx_vrepli_w:45; CHECK:       # %bb.0: # %entry46; CHECK-NEXT:    vrepli.w $vr0, 51147; CHECK-NEXT:    ret48entry:49  %res = call <4 x i32> @llvm.loongarch.lsx.vrepli.w(i32 511)50  ret <4 x i32> %res51}52 53declare <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32)54 55define <2 x i64> @lsx_vrepli_d() nounwind {56; CHECK-LABEL: lsx_vrepli_d:57; CHECK:       # %bb.0: # %entry58; CHECK-NEXT:    vrepli.d $vr0, 51159; CHECK-NEXT:    ret60entry:61  %res = call <2 x i64> @llvm.loongarch.lsx.vrepli.d(i32 511)62  ret <2 x i64> %res63}64