1 /// Pattern Matchings for VEL intrinsic instructions.
3 /// Intrinsic patterns written by hand.
6 def : Pat<(i64 (int_ve_vl_pack_f32p ADDRrii:$addr0, ADDRrii:$addr1)),
7 (ORrr (f2l (LDUrii MEMrii:$addr0)),
8 (i2l (LDLZXrii MEMrii:$addr1)))>;
10 def : Pat<(i64 (int_ve_vl_pack_f32a ADDRrii:$addr)),
12 (i2l (LDLZXrii MEMrii:$addr)),
13 (LEASLrii (ANDrm (LEAzii 0, 0, (LO32 (i64 0x0000000100000001))),
15 (HI32 (i64 0x0000000100000001))))>;
17 // The extract/insert patterns.
18 def : Pat<(v256i1 (int_ve_vl_extract_vm512u v512i1:$vm)),
19 (EXTRACT_SUBREG v512i1:$vm, sub_vm_even)>;
21 def : Pat<(v256i1 (int_ve_vl_extract_vm512l v512i1:$vm)),
22 (EXTRACT_SUBREG v512i1:$vm, sub_vm_odd)>;
24 def : Pat<(v512i1 (int_ve_vl_insert_vm512u v512i1:$vmx, v256i1:$vmy)),
25 (INSERT_SUBREG v512i1:$vmx, v256i1:$vmy, sub_vm_even)>;
27 def : Pat<(v512i1 (int_ve_vl_insert_vm512l v512i1:$vmx, v256i1:$vmy)),
28 (INSERT_SUBREG v512i1:$vmx, v256i1:$vmy, sub_vm_odd)>;
31 def : Pat<(int_ve_vl_vmrgw_vsvMl i32:$sy, v256f64:$vz, v512i1:$vm, i32:$vl),
32 (VMRGWrvml (i2l i32:$sy), v256f64:$vz, v512i1:$vm, i32:$vl)>;
33 def : Pat<(int_ve_vl_vmrgw_vsvMvl i32:$sy, v256f64:$vz, v512i1:$vm,
34 v256f64:$pt, i32:$vl),
35 (VMRGWrvml_v (i2l i32:$sy), v256f64:$vz, v512i1:$vm, i32:$vl,
39 def : Pat<(int_ve_vl_vmv_vsvl i32:$sy, v256f64:$vz, i32:$vl),
40 (VMVrvl (i2l i32:$sy), v256f64:$vz, i32:$vl)>;
41 def : Pat<(int_ve_vl_vmv_vsvvl i32:$sy, v256f64:$vz, v256f64:$pt, i32:$vl),
42 (VMVrvl_v (i2l i32:$sy), v256f64:$vz, i32:$vl, v256f64:$pt)>;
43 def : Pat<(int_ve_vl_vmv_vsvmvl i32:$sy, v256f64:$vz, v256i1:$vm, v256f64:$pt,
45 (VMVrvml_v (i2l i32:$sy), v256f64:$vz, v256i1:$vm, i32:$vl,
49 def : Pat<(int_ve_vl_lsv_vvss v256f64:$pt, i32:$sy, i64:$sz),
50 (LSVrr_v (i2l i32:$sy), i64:$sz, v256f64:$pt)>;
53 def : Pat<(int_ve_vl_lvsl_svs v256f64:$vx, i32:$sy),
54 (LVSvr v256f64:$vx, (i2l i32:$sy))>;
55 def : Pat<(int_ve_vl_lvsd_svs v256f64:$vx, i32:$sy),
56 (LVSvr v256f64:$vx, (i2l i32:$sy))>;
57 def : Pat<(int_ve_vl_lvss_svs v256f64:$vx, i32:$sy),
58 (l2f (LVSvr v256f64:$vx, (i2l i32:$sy)))>;
60 /// Intrinsic patterns automatically generated.
61 include "VEInstrIntrinsicVL.gen.td"