<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">Hello LLVM Devs,<div><br></div><div><br></div><div>Hope you are doing well.</div><div>I am implementing LLVM back-end for an architecture which has instruction that performs byte by byte comparison and stores result for each byte.</div><div><br></div><div><div>pcmpbf rD, rA, rB --> bytewise comparison returning position of first match in rd</div></div><div><br></div><div>So with this regard I wanted to find similar instruction lowering for nay other architecture which have similar instruction. </div><div>I found some thing similar on PPC. If I am wrong kindly suggest some example.</div><div><br></div><div>I am trying to understand following statement from PPCInstrInfo.td file:</div><div><div>  def CMPRB  : X_BF3_L1_RS5_RS5<31, 192, (outs crbitrc:$BF),</div><div>                                (ins u1imm:$L, g8rc:$rA, g8rc:$rB),</div><div>                                "cmprb $BF, $L, $rA, $rB", IIC_IntCompare, []>,</div><div>               Requires<[IsISA3_0]>;</div></div><div>Here I am not able to understand against which DAG pattern this gets matched ? By doing grep I don't get any code which provide me the required info.</div><div><br></div><div>Basically I want to know which LLVM IR instruction or intrinsic has similar semantics and then how I can lower it correctly.</div><div><br></div><div>Sincerely,</div><div>Vivek</div><div><br></div></div>
</div><br></div>