<div dir="ltr"><div><div>Can FileCheck be used to check that two registers are not the same?<br><br></div>Context: the AMDGPU v_qsad_pk_u16_8 instructions looks like this:<br></div>v_qsad_pk_u16_8 dst, src0, src1, src2<br><div><br></div><div>The destination register must be different than the source registers. I know how how to check that, say, src2 is the same as the dst register but not how to check that src2 is not the same as the dst register.<br><br>Here's my initial try, but as you can see it'll pass, rather than fail, if dst and src2 are the same.<br> v_qsad_pk_u16_u8 [[DEST:v\[[0-9]+:[0-9]+\]]], s[{{[0-9]+:[0-9]+}}], v{{[0-9]+}}, [[DEST]]<br><br></div><div>Thanks for any suggestions,<br><br></div><div>Mark<br></div></div>