<div dir="ltr">I have resolved the above mentioned error. please tell me whether the following instructions are correct in order <span style="font-size:12.8px">to define vector load and stores for 64 i32 elements</span>.<div><br></div><div><div style="font-size:12.8px"><div>def VMOV_256B_RM : I<0x6F, MRMSrcMem, (outs VR2048:$dst), (ins i32mem:$src),</div><div> "vmov_256B_rm\t{$src, $dst|$dst, $src}",</div><div> [(set VR2048:$dst, (v64i32 (scalar_to_vector (loadi32 addr:$src))))],</div><div> IIC_MOV_MEM>, EVEX;</div><div><br></div><div>def VMOV_256B_MR : I<0x7F, MRMDestMem, (outs), (ins i32mem:$dst, VR2048:$src),</div><div> "vmov_256B_mr\t{$src, $dst|$dst, $src}",</div><div> [(store (i32 (bitconvert VR2048:$src)), addr:$dst)], IIC_MOV_MEM>, EVEX;</div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 7, 2017 at 5:33 PM, hameeza ahmed <span dir="ltr"><<a href="mailto:hahmed2305@gmail.com" target="_blank">hahmed2305@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I m working towards backend.</div><div>Here i need to define vector load and stores for 64 i32 elements. so in <a href="http://x86instrinfo.td" target="_blank">x86instrinfo.td</a> i wrote;</div><div><br></div><div><div> def VMOV_256B_RM : I<0x6F, MRMSrcMem, (outs VR2048:$dst), (ins i32mem:$src),</div><div> "vmov_256B_rm\t{$src, $dst|$dst, $src}",</div><div> [(set VR2048:$dst, (v64i32 (scalar_to_vector (loadi32 addr:$src))))],</div><div> IIC_MOV_MEM>, EVEX;</div><div><br></div><div>def VMOV_256B_MR : I<0x7F, MRMDestMem, (outs), (ins i32mem:$dst, VR2048:$src),</div><div> "vmov_256B_mr\t{$src, $dst|$dst, $src}",</div><div> [(store (i32 (bitconvert VR2048:$src)), addr:$dst)], IIC_MOV_MEM>, EVEX;</div></div><div><br></div><div>here i have already define VR2048 in <a href="http://x86registerinfo.td" target="_blank">x86registerinfo.td</a> as;</div><div><br></div><div><div>def R256B_0: X86Reg<"R256B_0", 0>;</div><div>def R256B_1: X86Reg<"R256B_1", 1>;</div></div><div><div>def VR2048 : RegisterClass<"X86", [v64i32],</div><div> 2048, (add R256B_0, R256B_1)</div></div><div><br></div><div><br></div><div>Now when build llvm source i am getting following error:</div><div><br></div><div><div>Unhandled reg/opcode register encoding VR2048</div><div>Unhandled reg/opcode register encoding</div></div><div><br></div><div>Where i am wrong, please correct me;</div><div><br></div><div>I need help.</div><div><br></div><div>Thank you</div><div><br></div></div>
</blockquote></div><br></div>