[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / LoongArch / lsx / intrinsic-replvei.ll
blob9b8af1878cb83d52308bc77865bcea4fcc4c1167
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
4 declare <16 x i8> @llvm.loongarch.lsx.vreplvei.b(<16 x i8>, i32)
6 define <16 x i8> @lsx_vreplvei_b(<16 x i8> %va) nounwind {
7 ; CHECK-LABEL: lsx_vreplvei_b:
8 ; CHECK:       # %bb.0: # %entry
9 ; CHECK-NEXT:    vreplvei.b $vr0, $vr0, 15
10 ; CHECK-NEXT:    ret
11 entry:
12   %res = call <16 x i8> @llvm.loongarch.lsx.vreplvei.b(<16 x i8> %va, i32 15)
13   ret <16 x i8> %res
16 declare <8 x i16> @llvm.loongarch.lsx.vreplvei.h(<8 x i16>, i32)
18 define <8 x i16> @lsx_vreplvei_h(<8 x i16> %va) nounwind {
19 ; CHECK-LABEL: lsx_vreplvei_h:
20 ; CHECK:       # %bb.0: # %entry
21 ; CHECK-NEXT:    vreplvei.h $vr0, $vr0, 7
22 ; CHECK-NEXT:    ret
23 entry:
24   %res = call <8 x i16> @llvm.loongarch.lsx.vreplvei.h(<8 x i16> %va, i32 7)
25   ret <8 x i16> %res
28 declare <4 x i32> @llvm.loongarch.lsx.vreplvei.w(<4 x i32>, i32)
30 define <4 x i32> @lsx_vreplvei_w(<4 x i32> %va) nounwind {
31 ; CHECK-LABEL: lsx_vreplvei_w:
32 ; CHECK:       # %bb.0: # %entry
33 ; CHECK-NEXT:    vreplvei.w $vr0, $vr0, 3
34 ; CHECK-NEXT:    ret
35 entry:
36   %res = call <4 x i32> @llvm.loongarch.lsx.vreplvei.w(<4 x i32> %va, i32 3)
37   ret <4 x i32> %res
40 declare <2 x i64> @llvm.loongarch.lsx.vreplvei.d(<2 x i64>, i32)
42 define <2 x i64> @lsx_vreplvei_d(<2 x i64> %va) nounwind {
43 ; CHECK-LABEL: lsx_vreplvei_d:
44 ; CHECK:       # %bb.0: # %entry
45 ; CHECK-NEXT:    vreplvei.d $vr0, $vr0, 1
46 ; CHECK-NEXT:    ret
47 entry:
48   %res = call <2 x i64> @llvm.loongarch.lsx.vreplvei.d(<2 x i64> %va, i32 1)
49   ret <2 x i64> %res