Consider the Example:
//vcc is set through some comparison.
s_and_saveexec_b64 s[0:1], vcc //if all threads fail comparison 'Exec' is 0
s_cbranch_execz .LBB0_13 //If 'Exec' is zero jump to .LBB0_13
I am trying to make sense of the use of the last instruction, if the previous instruction is set to zero, dosen’t that mean all threads are inactive, then, no thread will execute the branch instruction.
I am converting hip code to assembly to understand the CDNA instructions.
New contributor
HolyBasil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.