//===--- HexagonMapAsm2IntrinV62.gen.td -----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// multiclass T_VR_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, IntRegs:$src2), (MI HvxVR:$src1, IntRegs:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, IntRegs:$src2), (MI HvxVR:$src1, IntRegs:$src2)>; } multiclass T_VVL_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, HvxVR:$src2, IntRegsLow8:$src3), (MI HvxVR:$src1, HvxVR:$src2, IntRegsLow8:$src3)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, HvxVR:$src2, IntRegsLow8:$src3), (MI HvxVR:$src1, HvxVR:$src2, IntRegsLow8:$src3)>; } multiclass T_VV_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, HvxVR:$src2), (MI HvxVR:$src1, HvxVR:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, HvxVR:$src2), (MI HvxVR:$src1, HvxVR:$src2)>; } multiclass T_WW_HVX_gen_pat { def: Pat<(IntID HvxWR:$src1, HvxWR:$src2), (MI HvxWR:$src1, HvxWR:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxWR:$src1, HvxWR:$src2), (MI HvxWR:$src1, HvxWR:$src2)>; } multiclass T_WVV_HVX_gen_pat { def: Pat<(IntID HvxWR:$src1, HvxVR:$src2, HvxVR:$src3), (MI HvxWR:$src1, HvxVR:$src2, HvxVR:$src3)>; def: Pat<(!cast(IntID#"_128B") HvxWR:$src1, HvxVR:$src2, HvxVR:$src3), (MI HvxWR:$src1, HvxVR:$src2, HvxVR:$src3)>; } multiclass T_WR_HVX_gen_pat { def: Pat<(IntID HvxWR:$src1, IntRegs:$src2), (MI HvxWR:$src1, IntRegs:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxWR:$src1, IntRegs:$src2), (MI HvxWR:$src1, IntRegs:$src2)>; } multiclass T_WWR_HVX_gen_pat { def: Pat<(IntID HvxWR:$src1, HvxWR:$src2, IntRegs:$src3), (MI HvxWR:$src1, HvxWR:$src2, IntRegs:$src3)>; def: Pat<(!cast(IntID#"_128B") HvxWR:$src1, HvxWR:$src2, IntRegs:$src3), (MI HvxWR:$src1, HvxWR:$src2, IntRegs:$src3)>; } multiclass T_VVR_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, HvxVR:$src2, IntRegs:$src3), (MI HvxVR:$src1, HvxVR:$src2, IntRegs:$src3)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, HvxVR:$src2, IntRegs:$src3), (MI HvxVR:$src1, HvxVR:$src2, IntRegs:$src3)>; } multiclass T_ZR_HVX_gen_pat { def: Pat<(IntID HvxQR:$src1, IntRegs:$src2), (MI HvxQR:$src1, IntRegs:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxQR:$src1, IntRegs:$src2), (MI HvxQR:$src1, IntRegs:$src2)>; } multiclass T_VZR_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, HvxQR:$src2, IntRegs:$src3), (MI HvxVR:$src1, HvxQR:$src2, IntRegs:$src3)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, HvxQR:$src2, IntRegs:$src3), (MI HvxVR:$src1, HvxQR:$src2, IntRegs:$src3)>; } multiclass T_ZV_HVX_gen_pat { def: Pat<(IntID HvxQR:$src1, HvxVR:$src2), (MI HvxQR:$src1, HvxVR:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxQR:$src1, HvxVR:$src2), (MI HvxQR:$src1, HvxVR:$src2)>; } multiclass T_R_HVX_gen_pat { def: Pat<(IntID IntRegs:$src1), (MI IntRegs:$src1)>; def: Pat<(!cast(IntID#"_128B") IntRegs:$src1), (MI IntRegs:$src1)>; } multiclass T_ZZ_HVX_gen_pat { def: Pat<(IntID HvxQR:$src1, HvxQR:$src2), (MI HvxQR:$src1, HvxQR:$src2)>; def: Pat<(!cast(IntID#"_128B") HvxQR:$src1, HvxQR:$src2), (MI HvxQR:$src1, HvxQR:$src2)>; } multiclass T_VVI_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, HvxVR:$src2, imm:$src3), (MI HvxVR:$src1, HvxVR:$src2, imm:$src3)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, HvxVR:$src2, imm:$src3), (MI HvxVR:$src1, HvxVR:$src2, imm:$src3)>; } multiclass T_VVVI_HVX_gen_pat { def: Pat<(IntID HvxVR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4), (MI HvxVR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4)>; def: Pat<(!cast(IntID#"_128B") HvxVR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4), (MI HvxVR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4)>; } multiclass T_WVVI_HVX_gen_pat { def: Pat<(IntID HvxWR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4), (MI HvxWR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4)>; def: Pat<(!cast(IntID#"_128B") HvxWR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4), (MI HvxWR:$src1, HvxVR:$src2, HvxVR:$src3, imm:$src4)>; } def : T_R_pat ; def : T_PP_pat ; def : T_PP_pat ; def : T_PP_pat ; def : T_PP_pat ; defm : T_VR_HVX_gen_pat ; defm : T_VR_HVX_gen_pat ; defm : T_VVL_HVX_gen_pat ; defm : T_VVL_HVX_gen_pat ; defm : T_VVL_HVX_gen_pat ; defm : T_VVL_HVX_gen_pat ; defm : T_VVL_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_VV_HVX_gen_pat ; defm : T_WW_HVX_gen_pat ; defm : T_WW_HVX_gen_pat ; defm : T_WW_HVX_gen_pat ; defm : T_WW_HVX_gen_pat ; defm : T_WVV_HVX_gen_pat ; defm : T_WVV_HVX_gen_pat ; defm : T_WVV_HVX_gen_pat ; defm : T_WVV_HVX_gen_pat ; defm : T_WR_HVX_gen_pat ; defm : T_WWR_HVX_gen_pat ; defm : T_VVR_HVX_gen_pat ; defm : T_ZR_HVX_gen_pat ; defm : T_VZR_HVX_gen_pat ; defm : T_ZV_HVX_gen_pat ; defm : T_ZV_HVX_gen_pat ; defm : T_R_HVX_gen_pat ; defm : T_R_HVX_gen_pat ; defm : T_R_HVX_gen_pat ; defm : T_ZZ_HVX_gen_pat ; defm : T_ZZ_HVX_gen_pat ; defm : T_VVI_HVX_gen_pat ; defm : T_VVI_HVX_gen_pat ; defm : T_VVVI_HVX_gen_pat ; defm : T_WVVI_HVX_gen_pat ;