1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
4 declare <8 x float> @llvm.loongarch.lasx.xvffint.s.w(<8 x i32>)
6 define <8 x float> @lasx_xvffint_s_w(<8 x i32> %va) nounwind {
7 ; CHECK-LABEL: lasx_xvffint_s_w:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: xvffint.s.w $xr0, $xr0
12 %res = call <8 x float> @llvm.loongarch.lasx.xvffint.s.w(<8 x i32> %va)
16 declare <4 x double> @llvm.loongarch.lasx.xvffint.d.l(<4 x i64>)
18 define <4 x double> @lasx_xvffint_d_l(<4 x i64> %va) nounwind {
19 ; CHECK-LABEL: lasx_xvffint_d_l:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: xvffint.d.l $xr0, $xr0
24 %res = call <4 x double> @llvm.loongarch.lasx.xvffint.d.l(<4 x i64> %va)
28 declare <8 x float> @llvm.loongarch.lasx.xvffint.s.wu(<8 x i32>)
30 define <8 x float> @lasx_xvffint_s_wu(<8 x i32> %va) nounwind {
31 ; CHECK-LABEL: lasx_xvffint_s_wu:
32 ; CHECK: # %bb.0: # %entry
33 ; CHECK-NEXT: xvffint.s.wu $xr0, $xr0
36 %res = call <8 x float> @llvm.loongarch.lasx.xvffint.s.wu(<8 x i32> %va)
40 declare <4 x double> @llvm.loongarch.lasx.xvffint.d.lu(<4 x i64>)
42 define <4 x double> @lasx_xvffint_d_lu(<4 x i64> %va) nounwind {
43 ; CHECK-LABEL: lasx_xvffint_d_lu:
44 ; CHECK: # %bb.0: # %entry
45 ; CHECK-NEXT: xvffint.d.lu $xr0, $xr0
48 %res = call <4 x double> @llvm.loongarch.lasx.xvffint.d.lu(<4 x i64> %va)
52 declare <4 x double> @llvm.loongarch.lasx.xvffintl.d.w(<8 x i32>)
54 define <4 x double> @lasx_xvffintl_d_w(<8 x i32> %va) nounwind {
55 ; CHECK-LABEL: lasx_xvffintl_d_w:
56 ; CHECK: # %bb.0: # %entry
57 ; CHECK-NEXT: xvffintl.d.w $xr0, $xr0
60 %res = call <4 x double> @llvm.loongarch.lasx.xvffintl.d.w(<8 x i32> %va)
64 declare <4 x double> @llvm.loongarch.lasx.xvffinth.d.w(<8 x i32>)
66 define <4 x double> @lasx_xvffinth_d_w(<8 x i32> %va) nounwind {
67 ; CHECK-LABEL: lasx_xvffinth_d_w:
68 ; CHECK: # %bb.0: # %entry
69 ; CHECK-NEXT: xvffinth.d.w $xr0, $xr0
72 %res = call <4 x double> @llvm.loongarch.lasx.xvffinth.d.w(<8 x i32> %va)
76 declare <8 x float> @llvm.loongarch.lasx.xvffint.s.l(<4 x i64>, <4 x i64>)
78 define <8 x float> @lasx_xvffint_s_l(<4 x i64> %va, <4 x i64> %vb) nounwind {
79 ; CHECK-LABEL: lasx_xvffint_s_l:
80 ; CHECK: # %bb.0: # %entry
81 ; CHECK-NEXT: xvffint.s.l $xr0, $xr0, $xr1
84 %res = call <8 x float> @llvm.loongarch.lasx.xvffint.s.l(<4 x i64> %va, <4 x i64> %vb)