<div dir="ltr">Hello,<div><br></div><div>I want to write a new instruction for vector division. one for integer other instruction for float.</div><div>I came to know llvm ir uses sdiv and fdiv for these operations respectively.</div><div><br></div><div>i was able to write the instruction for float/ double div without explicitly declaring fdiv legal for vector v64f32 in isellowering.cpp file.</div><div>but when i used the same approach for int and long i was getting some error. so for that i had to explicitly declare sdiv legal in isellowering.cpp file as follows.</div><div><br></div><div> setOperationAction(ISD::SDIV,                MVT::v64i32, Legal);<br></div><div><br></div><div>Why is that so? Please explain.</div><div><br></div><div>Thank You </div><div>Regards</div></div>